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.
146 lines
5.7 KiB
Swift
146 lines
5.7 KiB
Swift
//
|
|
// FinetuneJob.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct FinetuneJob: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var baseModel: String?
|
|
public var costCents: Int?
|
|
public var crName: String?
|
|
public var createdBy: String?
|
|
public var createdTime: String?
|
|
public var dataset: String?
|
|
public var deployUrl: String?
|
|
public var deployedModel: String?
|
|
public var displayName: String?
|
|
public var error: String?
|
|
public var finishedTime: String?
|
|
public var gpuCount: Int?
|
|
public var gpuSeconds: Int?
|
|
public var gpuType: String?
|
|
public var hyperparams: String?
|
|
public var message: String?
|
|
public var metered: Bool?
|
|
public var method: String?
|
|
public var name: String?
|
|
public var namespace: String?
|
|
public var numNodes: Int?
|
|
public var outputUri: String?
|
|
public var owner: String?
|
|
public var preset: String?
|
|
public var progress: Int?
|
|
public var runtime: String?
|
|
public var startedTime: String?
|
|
public var status: String?
|
|
public var task: String?
|
|
public var updatedTime: String?
|
|
|
|
public init(baseModel: String? = nil, costCents: Int? = nil, crName: String? = nil, createdBy: String? = nil, createdTime: String? = nil, dataset: String? = nil, deployUrl: String? = nil, deployedModel: String? = nil, displayName: String? = nil, error: String? = nil, finishedTime: String? = nil, gpuCount: Int? = nil, gpuSeconds: Int? = nil, gpuType: String? = nil, hyperparams: String? = nil, message: String? = nil, metered: Bool? = nil, method: String? = nil, name: String? = nil, namespace: String? = nil, numNodes: Int? = nil, outputUri: String? = nil, owner: String? = nil, preset: String? = nil, progress: Int? = nil, runtime: String? = nil, startedTime: String? = nil, status: String? = nil, task: String? = nil, updatedTime: String? = nil) {
|
|
self.baseModel = baseModel
|
|
self.costCents = costCents
|
|
self.crName = crName
|
|
self.createdBy = createdBy
|
|
self.createdTime = createdTime
|
|
self.dataset = dataset
|
|
self.deployUrl = deployUrl
|
|
self.deployedModel = deployedModel
|
|
self.displayName = displayName
|
|
self.error = error
|
|
self.finishedTime = finishedTime
|
|
self.gpuCount = gpuCount
|
|
self.gpuSeconds = gpuSeconds
|
|
self.gpuType = gpuType
|
|
self.hyperparams = hyperparams
|
|
self.message = message
|
|
self.metered = metered
|
|
self.method = method
|
|
self.name = name
|
|
self.namespace = namespace
|
|
self.numNodes = numNodes
|
|
self.outputUri = outputUri
|
|
self.owner = owner
|
|
self.preset = preset
|
|
self.progress = progress
|
|
self.runtime = runtime
|
|
self.startedTime = startedTime
|
|
self.status = status
|
|
self.task = task
|
|
self.updatedTime = updatedTime
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case baseModel
|
|
case costCents
|
|
case crName
|
|
case createdBy
|
|
case createdTime
|
|
case dataset
|
|
case deployUrl
|
|
case deployedModel
|
|
case displayName
|
|
case error
|
|
case finishedTime
|
|
case gpuCount
|
|
case gpuSeconds
|
|
case gpuType
|
|
case hyperparams
|
|
case message
|
|
case metered
|
|
case method
|
|
case name
|
|
case namespace
|
|
case numNodes
|
|
case outputUri
|
|
case owner
|
|
case preset
|
|
case progress
|
|
case runtime
|
|
case startedTime
|
|
case status
|
|
case task
|
|
case updatedTime
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(baseModel, forKey: .baseModel)
|
|
try container.encodeIfPresent(costCents, forKey: .costCents)
|
|
try container.encodeIfPresent(crName, forKey: .crName)
|
|
try container.encodeIfPresent(createdBy, forKey: .createdBy)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(dataset, forKey: .dataset)
|
|
try container.encodeIfPresent(deployUrl, forKey: .deployUrl)
|
|
try container.encodeIfPresent(deployedModel, forKey: .deployedModel)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(error, forKey: .error)
|
|
try container.encodeIfPresent(finishedTime, forKey: .finishedTime)
|
|
try container.encodeIfPresent(gpuCount, forKey: .gpuCount)
|
|
try container.encodeIfPresent(gpuSeconds, forKey: .gpuSeconds)
|
|
try container.encodeIfPresent(gpuType, forKey: .gpuType)
|
|
try container.encodeIfPresent(hyperparams, forKey: .hyperparams)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(metered, forKey: .metered)
|
|
try container.encodeIfPresent(method, forKey: .method)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(namespace, forKey: .namespace)
|
|
try container.encodeIfPresent(numNodes, forKey: .numNodes)
|
|
try container.encodeIfPresent(outputUri, forKey: .outputUri)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(preset, forKey: .preset)
|
|
try container.encodeIfPresent(progress, forKey: .progress)
|
|
try container.encodeIfPresent(runtime, forKey: .runtime)
|
|
try container.encodeIfPresent(startedTime, forKey: .startedTime)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(task, forKey: .task)
|
|
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
|
|
}
|
|
}
|
|
|