mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
66 lines
2.3 KiB
Swift
66 lines
2.3 KiB
Swift
//
|
|
// AiHistoryRetrain.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct AiHistoryRetrain: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var date: String?
|
|
public var events: Int?
|
|
public var gateBase: Double?
|
|
public var gateMetric: String?
|
|
public var gatePass: Bool?
|
|
public var gateValue: Double?
|
|
public var holdoutAccuracy: Double?
|
|
public var published: Bool?
|
|
public var trainedTime: String?
|
|
public var version: String?
|
|
|
|
public init(date: String? = nil, events: Int? = nil, gateBase: Double? = nil, gateMetric: String? = nil, gatePass: Bool? = nil, gateValue: Double? = nil, holdoutAccuracy: Double? = nil, published: Bool? = nil, trainedTime: String? = nil, version: String? = nil) {
|
|
self.date = date
|
|
self.events = events
|
|
self.gateBase = gateBase
|
|
self.gateMetric = gateMetric
|
|
self.gatePass = gatePass
|
|
self.gateValue = gateValue
|
|
self.holdoutAccuracy = holdoutAccuracy
|
|
self.published = published
|
|
self.trainedTime = trainedTime
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case date
|
|
case events
|
|
case gateBase = "gate_base"
|
|
case gateMetric = "gate_metric"
|
|
case gatePass = "gate_pass"
|
|
case gateValue = "gate_value"
|
|
case holdoutAccuracy = "holdout_accuracy"
|
|
case published
|
|
case trainedTime = "trained_time"
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(date, forKey: .date)
|
|
try container.encodeIfPresent(events, forKey: .events)
|
|
try container.encodeIfPresent(gateBase, forKey: .gateBase)
|
|
try container.encodeIfPresent(gateMetric, forKey: .gateMetric)
|
|
try container.encodeIfPresent(gatePass, forKey: .gatePass)
|
|
try container.encodeIfPresent(gateValue, forKey: .gateValue)
|
|
try container.encodeIfPresent(holdoutAccuracy, forKey: .holdoutAccuracy)
|
|
try container.encodeIfPresent(published, forKey: .published)
|
|
try container.encodeIfPresent(trainedTime, forKey: .trainedTime)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|