Files
zeekay b60f47a8bb Regenerate: the AI surface says what it answers
288 of hanzoai/ai's 294 operations now declare a response, against 1 before.
GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages —
every address a client actually calls — used to reach this client untyped,
because cloud's relay carried an operation's sentence and dropped the shapes
it named. It carries both now.

Fleet-wide the document goes from 69% to 81% of operations declaring what
comes back, which is where the ~208 new models here come from.
2026-08-28 15:52:19 -07:00

102 lines
4.3 KiB
Swift

//
// ModelRoute.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ModelRoute: Sendable, Codable, ParameterConvertible, Hashable {
public var costInPerMillion: Double?
public var costOutPerMillion: Double?
public var createdTime: String?
public var enabled: Bool?
public var fallback1Provider: String?
public var fallback1Upstream: String?
public var fallback2Provider: String?
public var fallback2Upstream: String?
public var hidden: Bool?
public var inputPricePerMillion: Double?
public var modelName: String?
public var outputPricePerMillion: Double?
public var ownedBy: String?
public var owner: String?
public var premium: Bool?
public var priced: Bool?
public var provider: String?
public var updatedTime: String?
public var upstream: String?
public init(costInPerMillion: Double? = nil, costOutPerMillion: Double? = nil, createdTime: String? = nil, enabled: Bool? = nil, fallback1Provider: String? = nil, fallback1Upstream: String? = nil, fallback2Provider: String? = nil, fallback2Upstream: String? = nil, hidden: Bool? = nil, inputPricePerMillion: Double? = nil, modelName: String? = nil, outputPricePerMillion: Double? = nil, ownedBy: String? = nil, owner: String? = nil, premium: Bool? = nil, priced: Bool? = nil, provider: String? = nil, updatedTime: String? = nil, upstream: String? = nil) {
self.costInPerMillion = costInPerMillion
self.costOutPerMillion = costOutPerMillion
self.createdTime = createdTime
self.enabled = enabled
self.fallback1Provider = fallback1Provider
self.fallback1Upstream = fallback1Upstream
self.fallback2Provider = fallback2Provider
self.fallback2Upstream = fallback2Upstream
self.hidden = hidden
self.inputPricePerMillion = inputPricePerMillion
self.modelName = modelName
self.outputPricePerMillion = outputPricePerMillion
self.ownedBy = ownedBy
self.owner = owner
self.premium = premium
self.priced = priced
self.provider = provider
self.updatedTime = updatedTime
self.upstream = upstream
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case costInPerMillion
case costOutPerMillion
case createdTime
case enabled
case fallback1Provider
case fallback1Upstream
case fallback2Provider
case fallback2Upstream
case hidden
case inputPricePerMillion
case modelName
case outputPricePerMillion
case ownedBy
case owner
case premium
case priced
case provider
case updatedTime
case upstream
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(costInPerMillion, forKey: .costInPerMillion)
try container.encodeIfPresent(costOutPerMillion, forKey: .costOutPerMillion)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(enabled, forKey: .enabled)
try container.encodeIfPresent(fallback1Provider, forKey: .fallback1Provider)
try container.encodeIfPresent(fallback1Upstream, forKey: .fallback1Upstream)
try container.encodeIfPresent(fallback2Provider, forKey: .fallback2Provider)
try container.encodeIfPresent(fallback2Upstream, forKey: .fallback2Upstream)
try container.encodeIfPresent(hidden, forKey: .hidden)
try container.encodeIfPresent(inputPricePerMillion, forKey: .inputPricePerMillion)
try container.encodeIfPresent(modelName, forKey: .modelName)
try container.encodeIfPresent(outputPricePerMillion, forKey: .outputPricePerMillion)
try container.encodeIfPresent(ownedBy, forKey: .ownedBy)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(premium, forKey: .premium)
try container.encodeIfPresent(priced, forKey: .priced)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
try container.encodeIfPresent(upstream, forKey: .upstream)
}
}