The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface DedicatedGpu
*/
export interface DedicatedGpu {
/**
*
* @type {string}
* @memberof DedicatedGpu
*/
gpuType: string;
/**
*
* @type {string}
* @memberof DedicatedGpu
*/
creditsPerGpuHour: string | null;
/**
*
* @type {string}
* @memberof DedicatedGpu
*/
ratesFetchedAt: string | null;
/**
*
* @type {number}
* @memberof DedicatedGpu
*/
ttftMsP50: number | null;
/**
*
* @type {number}
* @memberof DedicatedGpu
*/
tokensPerSecondP50: number | null;
/**
*
* @type {number}
* @memberof DedicatedGpu
*/
latencyMsP50: number | null;
}
/**
* Check if a given object implements the DedicatedGpu interface.
*/
export function instanceOfDedicatedGpu(value: object): value is DedicatedGpu {
if (!('gpuType' in value) || value['gpuType'] === undefined) return false;
if (!('creditsPerGpuHour' in value) || value['creditsPerGpuHour'] === undefined) return false;
if (!('ratesFetchedAt' in value) || value['ratesFetchedAt'] === undefined) return false;
if (!('ttftMsP50' in value) || value['ttftMsP50'] === undefined) return false;
if (!('tokensPerSecondP50' in value) || value['tokensPerSecondP50'] === undefined) return false;
if (!('latencyMsP50' in value) || value['latencyMsP50'] === undefined) return false;
return true;
}
export function DedicatedGpuFromJSON(json: any): DedicatedGpu {
return DedicatedGpuFromJSONTyped(json, false);
}
export function DedicatedGpuFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedGpu {
if (json == null) {
return json;
}
return {
'gpuType': json['gpu_type'],
'creditsPerGpuHour': json['credits_per_gpu_hour'],
'ratesFetchedAt': json['rates_fetched_at'],
'ttftMsP50': json['ttft_ms_p50'],
'tokensPerSecondP50': json['tokens_per_second_p50'],
'latencyMsP50': json['latency_ms_p50'],
};
}
export function DedicatedGpuToJSON(json: any): DedicatedGpu {
return DedicatedGpuToJSONTyped(json, false);
}
export function DedicatedGpuToJSONTyped(value?: DedicatedGpu | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'gpu_type': value['gpuType'],
'credits_per_gpu_hour': value['creditsPerGpuHour'],
'rates_fetched_at': value['ratesFetchedAt'],
'ttft_ms_p50': value['ttftMsP50'],
'tokens_per_second_p50': value['tokensPerSecondP50'],
'latency_ms_p50': value['latencyMsP50'],
};
}