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.
62 lines
1.9 KiB
Swift
62 lines
1.9 KiB
Swift
//
|
|
// Service.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Service: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var expectedStatus: String?
|
|
public var message: String?
|
|
public var name: String?
|
|
public var no: Int?
|
|
public var path: String?
|
|
public var port: Int?
|
|
public var processId: Int?
|
|
public var status: String?
|
|
public var subStatus: String?
|
|
|
|
public init(expectedStatus: String? = nil, message: String? = nil, name: String? = nil, no: Int? = nil, path: String? = nil, port: Int? = nil, processId: Int? = nil, status: String? = nil, subStatus: String? = nil) {
|
|
self.expectedStatus = expectedStatus
|
|
self.message = message
|
|
self.name = name
|
|
self.no = no
|
|
self.path = path
|
|
self.port = port
|
|
self.processId = processId
|
|
self.status = status
|
|
self.subStatus = subStatus
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case expectedStatus
|
|
case message
|
|
case name
|
|
case no
|
|
case path
|
|
case port
|
|
case processId
|
|
case status
|
|
case subStatus
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(expectedStatus, forKey: .expectedStatus)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(no, forKey: .no)
|
|
try container.encodeIfPresent(path, forKey: .path)
|
|
try container.encodeIfPresent(port, forKey: .port)
|
|
try container.encodeIfPresent(processId, forKey: .processId)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(subStatus, forKey: .subStatus)
|
|
}
|
|
}
|
|
|