Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

66 lines
2.5 KiB
Swift

//
// LLM.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct LLM: Sendable, Codable, ParameterConvertible, Hashable {
/** Available is false when the warehouse was not connected or a query blipped. The totals below are then honest zeros, NOT measured ones. */
public var available: Bool?
/** CompletionTokens is the output half. */
public var completionTokens: Int64?
/** CostCents is what they cost the org, in US cents. This IS a Hanzo charge. */
public var costCents: Int64?
/** Models is how many distinct models were used. */
public var models: Int64?
/** PromptTokens is the input half of that total. */
public var promptTokens: Int64?
/** Requests is how many completions the org made in the window. */
public var requests: Int64?
/** Source names the warehouse table the totals came from. */
public var source: String?
/** Tokens is the total tokens those completions consumed. */
public var tokens: Int64?
public init(available: Bool? = nil, completionTokens: Int64? = nil, costCents: Int64? = nil, models: Int64? = nil, promptTokens: Int64? = nil, requests: Int64? = nil, source: String? = nil, tokens: Int64? = nil) {
self.available = available
self.completionTokens = completionTokens
self.costCents = costCents
self.models = models
self.promptTokens = promptTokens
self.requests = requests
self.source = source
self.tokens = tokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case available
case completionTokens
case costCents
case models
case promptTokens
case requests
case source
case tokens
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(available, forKey: .available)
try container.encodeIfPresent(completionTokens, forKey: .completionTokens)
try container.encodeIfPresent(costCents, forKey: .costCents)
try container.encodeIfPresent(models, forKey: .models)
try container.encodeIfPresent(promptTokens, forKey: .promptTokens)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(tokens, forKey: .tokens)
}
}