fix: update protocol models and android parsing

This commit is contained in:
Peter Steinberger
2026-01-03 15:04:24 +00:00
parent 9a9b429f74
commit be3da5b856
2 changed files with 11 additions and 5 deletions

View File

@@ -774,23 +774,27 @@ public struct ModelChoice: Codable {
public let name: String
public let provider: String
public let contextwindow: Int?
public let reasoning: Bool?
public init(
id: String,
name: String,
provider: String,
contextwindow: Int?
contextwindow: Int?,
reasoning: Bool?
) {
self.id = id
self.name = name
self.provider = provider
self.contextwindow = contextwindow
self.reasoning = reasoning
}
private enum CodingKeys: String, CodingKey {
case id
case name
case provider
case contextwindow = "contextWindow"
case reasoning
}
}