mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
46 lines
1.6 KiB
Swift
46 lines
1.6 KiB
Swift
//
|
|
// Suite.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Suite: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Attempts is how many times to try each item; the harness's default applies when it is omitted. */
|
|
public var attempts: Int64?
|
|
/** Benchmarks are the catalog ids to run. At least one is required, and every id must be in the catalog. */
|
|
public var benchmarks: [String]
|
|
/** Endpoint is your own chat-completions URL, for benchmarking a model this arena does not host. Either this or model is required. */
|
|
public var endpoint: String?
|
|
/** Model is the catalog model id to run. Either this or endpoint is required. */
|
|
public var model: String?
|
|
|
|
public init(attempts: Int64? = nil, benchmarks: [String], endpoint: String? = nil, model: String? = nil) {
|
|
self.attempts = attempts
|
|
self.benchmarks = benchmarks
|
|
self.endpoint = endpoint
|
|
self.model = model
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case attempts
|
|
case benchmarks
|
|
case endpoint
|
|
case model
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(attempts, forKey: .attempts)
|
|
try container.encode(benchmarks, forKey: .benchmarks)
|
|
try container.encodeIfPresent(endpoint, forKey: .endpoint)
|
|
try container.encodeIfPresent(model, forKey: .model)
|
|
}
|
|
}
|
|
|