Skip to content

Commit

Permalink
SpeziLLMTests: set LLMOpenAISchema's value1 correctly
Browse files Browse the repository at this point in the history
Reverts: 239aff5
  • Loading branch information
paulhdk committed Dec 16, 2024
1 parent 13b7bd2 commit 16644d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Tests/SpeziLLMTests/LLMOpenAIParameterTests+Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class LLMOpenAIParameterArrayTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class LLMOpenAIParameterCustomTypesTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class LLMOpenAIParameterEnumTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class LLMOpenAIInvalidParametersTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final class LLMOpenAIParameterOptionalTypesTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final class LLMOpenAIParameterPrimitiveTypesTests: XCTestCase {
}

let llm = LLMOpenAISchema(
parameters: .init(modelType: .init(value2: .gpt_hyphen_4_hyphen_turbo))
parameters: .init(modelType: .init(value1: "GPT 4 Turbo", value2: .gpt_hyphen_4_hyphen_turbo))
) {
LLMFunctionTest(someInitArg: "testArg")
}
Expand Down

0 comments on commit 16644d0

Please sign in to comment.