Skip to content

Commit

Permalink
Swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhdk committed Oct 4, 2024
1 parent 14ede91 commit e2b435d
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element: BinaryInteg
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("LLMFunctionParameterWrapper+ArrayTypes")
self.init(description: "")
Expand Down Expand Up @@ -94,14 +87,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element: BinaryFloat
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LMMFunctionParameter+ArrayTypes")
self.init(description: "")
Expand Down Expand Up @@ -136,14 +122,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element == Bool {
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameterWrapper+ArrayTypes")
self.init(description: "")
Expand Down Expand Up @@ -184,14 +163,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element: StringProto
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameterWrapper+ArrayTypes")
self.init(description: "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element: LLMFunction
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("Couldn't create FunctionParameterWrapper+CustomType \(error)")
self.init(description: "")
Expand Down Expand Up @@ -91,14 +84,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional, T.Wrapped: AnyArray
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("Couldn't create LLMFunctionParameterWrapper+CustomTypes")
self.init(description: "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,7 @@ extension _LLMFunctionParameterWrapper where T: AnyArray, T.Element: LLMFunction
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger
.error(
Expand Down Expand Up @@ -147,14 +140,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional,
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger
.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional, T.Wrapped: AnyArray
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionPropertyWrapper+OptionalType")
self.init(description: "")
Expand Down Expand Up @@ -212,14 +205,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional, T.Wrapped: AnyArray
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameterWrapper+OptionalTypes")
self.init(description: "")
Expand Down Expand Up @@ -254,14 +240,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional, T.Wrapped: AnyArray
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameterWrapper+OptionalTypes.swift")
self.init(description: "")
Expand Down Expand Up @@ -303,14 +282,7 @@ extension _LLMFunctionParameterWrapper where T: AnyOptional, T.Wrapped: AnyArray
"minItems": minItems as Any?,
"maxItems": maxItems as Any?,
"uniqueItems": uniqueItems as Any?
].compactMapValues { $0 }
// .filter { _, value in if let dict = value as? [String: Any] {
// dict.count > 1
// } else {
// true
// }
// }))
))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameterWrapper+OptionalType")
self.init(description: "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension _LLMFunctionParameterWrapper where T: BinaryInteger {
"multipleOf": multipleOf as Any?,
"minimum": minimum.map { Double($0) } as Any?,
"maximum": maximum.map { Double($0) } as Any?
].compactMapValues { $0 }))
].compactMapValues { $0 }))
} catch {
logger.error("SpeziLLMOpenAI - initialization error - LLMFunctionParameter+PrimitveTypes")
self.init(description: "")
Expand Down
10 changes: 5 additions & 5 deletions Tests/SpeziLLMTests/LLMOpenAIParameterTests+CustomTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class LLMOpenAIParameterCustomTypesTests: XCTestCase {
struct CustomType: LLMFunctionParameterArrayElement, Encodable, Equatable {
static var itemSchema: LLMFunctionParameterItemSchema = {
do {
return try .init(unvalidatedValue: [
return try .init(unvalidatedValue: [
"type": "object",
"properties": [
"propertyA": [
Expand All @@ -27,19 +27,19 @@ final class LLMOpenAIParameterCustomTypesTests: XCTestCase {
]
]
])
}
catch {
} catch {
print("unable to initialse schema in LLMOpenAIParameterCustomTypesTets")
return .init()
}
}()

var propertyA: String
var propertyB: Int
}

struct Parameters: Encodable {
static let shared = Self()

let customArrayParameter = [
CustomType(propertyA: "testA", propertyB: 123),
CustomType(propertyA: "testB", propertyB: 456)
Expand Down
40 changes: 20 additions & 20 deletions Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,35 +81,35 @@ final class LLMOpenAIParameterEnumTests: XCTestCase {
// Validate parameter schema
let schemaEnum = try XCTUnwrap(llmFunction.schemaValueCollectors["enumParameter"])
var schema = schemaEnum.schema.value
XCTAssertEqual(schema["type"] as! String, "string")
XCTAssertEqual(schema["description"] as! String, "Enum Parameter")
XCTAssertEqual(schema["const"] as! String, "optionA")
XCTAssertEqual(schema["enum"] as! [String], CustomEnumType.allCases.map { $0.rawValue })
XCTAssertEqual(schema["type"] as? String, "string")
XCTAssertEqual(schema["description"] as? String, "Enum Parameter")
XCTAssertEqual(schema["const"] as? String, "optionA")
XCTAssertEqual(schema["enum"] as? [String], CustomEnumType.allCases.map { $0.rawValue })

let schemaOptionalEnum = try XCTUnwrap(llmFunction.schemaValueCollectors["optionalEnumParameter"])
schema = schemaOptionalEnum.schema.value
XCTAssertEqual(schema["type"] as! String, "string")
XCTAssertEqual(schema["description"] as! String, "Optional Enum Parameter")
XCTAssertEqual(schema["enum"] as! [String], CustomEnumType.allCases.map { $0.rawValue })
XCTAssertEqual(schema["type"] as? String, "string")
XCTAssertEqual(schema["description"] as? String, "Optional Enum Parameter")
XCTAssertEqual(schema["enum"] as? [String], CustomEnumType.allCases.map { $0.rawValue })

let schemaArrayEnum = try XCTUnwrap(llmFunction.schemaValueCollectors["arrayEnumParameter"])
schema = schemaArrayEnum.schema.value
var items = schema["items"] as! [String: Any]
XCTAssertEqual(schema["type"] as! String, "array")
XCTAssertEqual(schema["description"] as! String, "Array Enum Parameter")
XCTAssertEqual(schema["minItems"] as! Int, 1)
XCTAssertEqual(schema["maxItems"] as! Int, 5)
XCTAssertFalse(schema["uniqueItems"] as! Bool)
XCTAssertEqual(items["type"] as! String, "string")
XCTAssertEqual(items["enum"] as! [String], CustomEnumType.allCases.map { $0.rawValue })
var items = schema["items"] as? [String: Any]
XCTAssertEqual(schema["type"] as? String, "array")
XCTAssertEqual(schema["description"] as? String, "Array Enum Parameter")
XCTAssertEqual(schema["minItems"] as? Int, 1)
XCTAssertEqual(schema["maxItems"] as? Int, 5)
XCTAssertFalse(schema["uniqueItems"] as? Bool)

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Release, SpeziLLM-macOS-Release.xcresult, SpeziLLM-macOS-Rele... / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Debug, SpeziLLM-macOS.xcresult, SpeziLLM-macOS.xcresult) / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Release, SpeziLLM-iOS-Release.xcresult, SpeziLLM-iOS-Release.xc... / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Debug, SpeziLLM-iOS.xcresult, SpeziLLM-iOS.xcresult) / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Debug, SpeziLLM-visionOS.xcresult, SpeziLLM-visionOS.xcres... / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead

Check failure on line 102 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Release, SpeziLLM-visionOS-Release.xcresult, SpeziLLM-visi... / Test using xcodebuild or run fastlane

optional type 'Bool?' cannot be used as a boolean; test for '!= nil' instead
XCTAssertEqual(items["type"] as? String, "string")

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Release, SpeziLLM-macOS-Release.xcresult, SpeziLLM-macOS-Rele... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Debug, SpeziLLM-macOS.xcresult, SpeziLLM-macOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Release, SpeziLLM-iOS-Release.xcresult, SpeziLLM-iOS-Release.xc... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Debug, SpeziLLM-iOS.xcresult, SpeziLLM-iOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Debug, SpeziLLM-visionOS.xcresult, SpeziLLM-visionOS.xcres... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 103 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Release, SpeziLLM-visionOS-Release.xcresult, SpeziLLM-visi... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'
XCTAssertEqual(items["enum"] as? [String], CustomEnumType.allCases.map { $0.rawValue })

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Release, SpeziLLM-macOS-Release.xcresult, SpeziLLM-macOS-Rele... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Debug, SpeziLLM-macOS.xcresult, SpeziLLM-macOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Release, SpeziLLM-iOS-Release.xcresult, SpeziLLM-iOS-Release.xc... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Debug, SpeziLLM-iOS.xcresult, SpeziLLM-iOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Debug, SpeziLLM-visionOS.xcresult, SpeziLLM-visionOS.xcres... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 104 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Release, SpeziLLM-visionOS-Release.xcresult, SpeziLLM-visi... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

let schemaOptionalArrayEnum = try XCTUnwrap(llmFunction.schemaValueCollectors["optionalArrayEnumParameter"])
schema = schemaOptionalArrayEnum.schema.value
items = schema["items"] as! [String: Any]
XCTAssertEqual(schema["type"] as! String, "array")
XCTAssertEqual(schema["description"] as! String, "Optional Array Enum Parameter")
XCTAssertEqual(items["type"] as! String, "string")
XCTAssertEqual(items["enum"] as! [String], CustomEnumType.allCases.map { $0.rawValue })
items = schema["items"] as? [String: Any]
XCTAssertEqual(schema["type"] as? String, "array")
XCTAssertEqual(schema["description"] as? String, "Optional Array Enum Parameter")
XCTAssertEqual(items["type"] as? String, "string")

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Release, SpeziLLM-macOS-Release.xcresult, SpeziLLM-macOS-Rele... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Debug, SpeziLLM-macOS.xcresult, SpeziLLM-macOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Release, SpeziLLM-iOS-Release.xcresult, SpeziLLM-iOS-Release.xc... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Debug, SpeziLLM-iOS.xcresult, SpeziLLM-iOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Debug, SpeziLLM-visionOS.xcresult, SpeziLLM-visionOS.xcres... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 111 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Release, SpeziLLM-visionOS-Release.xcresult, SpeziLLM-visi... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'
XCTAssertEqual(items["enum"] as? [String], CustomEnumType.allCases.map { $0.rawValue })

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Release, SpeziLLM-macOS-Release.xcresult, SpeziLLM-macOS-Rele... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package macOS (Debug, SpeziLLM-macOS.xcresult, SpeziLLM-macOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Release, SpeziLLM-iOS-Release.xcresult, SpeziLLM-iOS-Release.xc... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package iOS (Debug, SpeziLLM-iOS.xcresult, SpeziLLM-iOS.xcresult) / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Debug, SpeziLLM-visionOS.xcresult, SpeziLLM-visionOS.xcres... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

Check failure on line 112 in Tests/SpeziLLMTests/LLMOpenAIParameterTests+Enum.swift

View workflow job for this annotation

GitHub Actions / Build and Test Swift Package visionOS (Release, SpeziLLM-visionOS-Release.xcresult, SpeziLLM-visi... / Test using xcodebuild or run fastlane

value of optional type '[String : Any]?' must be unwrapped to refer to member 'subscript' of wrapped base type '[String : Any]'

// Validate parameter injection
let parameterData = try XCTUnwrap(
Expand Down

0 comments on commit e2b435d

Please sign in to comment.