Skip to content

Commit

Permalink
Resolve various compile-time warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Jan 17, 2025
1 parent 97aad47 commit c6f0273
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LLMonFHIR/Helper/CodableArray+RawRepresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation


extension Array: RawRepresentable where Element: Codable {
extension Array: @retroactive RawRepresentable where Element: Codable {
public var rawValue: String {
guard let data = try? JSONEncoder().encode(self),
let rawValue = String(data: data, encoding: .utf8) else {
Expand Down
2 changes: 1 addition & 1 deletion LLMonFHIR/LLMonFHIRStandard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import SwiftUI


actor LLMonFHIRStandard: Standard, HealthKitConstraint, EnvironmentAccessible {
@Dependency var fhirStore: FHIRStore
@Dependency(FHIRStore.self) var fhirStore

@MainActor var useHealthKitResources = true
private var samples: [HKSample] = []
Expand Down
6 changes: 3 additions & 3 deletions LLMonFHIR/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct SettingsView: View {
case .openAIModelSummary:
LLMOpenAIModelOnboardingStep(
actionText: "OPEN_AI_MODEL_SAVE_ACTION",
models: [.gpt4_turbo_preview, .gpt4, .gpt3_5Turbo]
models: [.gpt4_o, .gpt4, .gpt3_5Turbo]
) { chosenModelType in
openAIModelSummarization = chosenModelType
resourceSummary.changeLLMSchema(
Expand All @@ -163,7 +163,7 @@ struct SettingsView: View {
case .openAIModelInterpretation:
LLMOpenAIModelOnboardingStep(
actionText: "OPEN_AI_MODEL_SAVE_ACTION",
models: [.gpt4_turbo_preview, .gpt4, .gpt3_5Turbo]
models: [.gpt4_o, .gpt4, .gpt3_5Turbo]
) { chosenModelType in
openAIModelInterpretation = chosenModelType
resourceInterpreter.changeLLMSchema(
Expand All @@ -179,7 +179,7 @@ struct SettingsView: View {
case .openAIModelMultipleInterpretation:
LLMOpenAIModelOnboardingStep(
actionText: "OPEN_AI_MODEL_SAVE_ACTION",
models: [.gpt4_turbo_preview, .gpt4]
models: [.gpt4_o, .gpt4]
) { chosenModelType in
openAIModelMultipleInterpretation = chosenModelType
multipleResourceInterpreter.changeLLMSchema(
Expand Down
2 changes: 1 addition & 1 deletion LLMonFHIR/SharedContext/StorageKeys.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StorageKeys {
enum Defaults {
static let enableTextToSpeech = false
static let resourceLimit = 250
static let openAIModel: LLMOpenAIModelType = .gpt4_turbo_preview
static let openAIModel: LLMOpenAIModelType = .gpt4_turbo
}


Expand Down

0 comments on commit c6f0273

Please sign in to comment.