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';
import type { PublicModelCategoryEnum } from './PublicModelCategoryEnum';
import {
PublicModelCategoryEnumFromJSON,
PublicModelCategoryEnumFromJSONTyped,
PublicModelCategoryEnumToJSON,
PublicModelCategoryEnumToJSONTyped,
} from './PublicModelCategoryEnum';
import type { PublicModelAvailability } from './PublicModelAvailability';
import {
PublicModelAvailabilityFromJSON,
PublicModelAvailabilityFromJSONTyped,
PublicModelAvailabilityToJSON,
PublicModelAvailabilityToJSONTyped,
} from './PublicModelAvailability';
import type { PublicModelFinetuning } from './PublicModelFinetuning';
import {
PublicModelFinetuningFromJSON,
PublicModelFinetuningFromJSONTyped,
PublicModelFinetuningToJSON,
PublicModelFinetuningToJSONTyped,
} from './PublicModelFinetuning';
import type { PublicModelMarketing } from './PublicModelMarketing';
import {
PublicModelMarketingFromJSON,
PublicModelMarketingFromJSONTyped,
PublicModelMarketingToJSON,
PublicModelMarketingToJSONTyped,
} from './PublicModelMarketing';
import type { PublicModelPricing } from './PublicModelPricing';
import {
PublicModelPricingFromJSON,
PublicModelPricingFromJSONTyped,
PublicModelPricingToJSON,
PublicModelPricingToJSONTyped,
} from './PublicModelPricing';
/**
* Public, unauthenticated library entry; never reflects a user's own
* fine-tuned instances.
* @export
* @interface PublicModel
*/
export interface PublicModel {
/**
*
* @type {string}
* @memberof PublicModel
*/
id: string;
/**
*
* @type {string}
* @memberof PublicModel
*/
slug: string;
/**
*
* @type {string}
* @memberof PublicModel
*/
display: string;
/**
*
* @type {string}
* @memberof PublicModel
*/
provider: string;
/**
*
* @type {string}
* @memberof PublicModel
*/
group: string | null;
/**
*
* @type {PublicModelCategoryEnum}
* @memberof PublicModel
*/
category: PublicModelCategoryEnum;
/**
*
* @type {string}
* @memberof PublicModel
*/
hfModelId: string | null;
/**
*
* @type {string}
* @memberof PublicModel
*/
tier: string | null;
/**
*
* @type {string}
* @memberof PublicModel
*/
params: string | null;
/**
*
* @type {number}
* @memberof PublicModel
*/
totalParamsB: number | null;
/**
*
* @type {number}
* @memberof PublicModel
*/
contextLength: number | null;
/**
*
* @type {boolean}
* @memberof PublicModel
*/
supportsToolCalling: boolean;
/**
*
* @type {Array<string>}
* @memberof PublicModel
*/
useCases: Array<string>;
/**
*
* @type {string}
* @memberof PublicModel
*/
type: string | null;
/**
*
* @type {string}
* @memberof PublicModel
*/
hardware: string | null;
/**
*
* @type {PublicModelAvailability}
* @memberof PublicModel
*/
availableFor: PublicModelAvailability;
/**
*
* @type {PublicModelFinetuning}
* @memberof PublicModel
*/
finetuning: PublicModelFinetuning | null;
/**
*
* @type {PublicModelPricing}
* @memberof PublicModel
*/
pricing: PublicModelPricing | null;
/**
*
* @type {PublicModelMarketing}
* @memberof PublicModel
*/
marketing: PublicModelMarketing | null;
}
/**
* Check if a given object implements the PublicModel interface.
*/
export function instanceOfPublicModel(value: object): value is PublicModel {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('slug' in value) || value['slug'] === undefined) return false;
if (!('display' in value) || value['display'] === undefined) return false;
if (!('provider' in value) || value['provider'] === undefined) return false;
if (!('group' in value) || value['group'] === undefined) return false;
if (!('category' in value) || value['category'] === undefined) return false;
if (!('hfModelId' in value) || value['hfModelId'] === undefined) return false;
if (!('tier' in value) || value['tier'] === undefined) return false;
if (!('params' in value) || value['params'] === undefined) return false;
if (!('totalParamsB' in value) || value['totalParamsB'] === undefined) return false;
if (!('contextLength' in value) || value['contextLength'] === undefined) return false;
if (!('supportsToolCalling' in value) || value['supportsToolCalling'] === undefined) return false;
if (!('useCases' in value) || value['useCases'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
if (!('hardware' in value) || value['hardware'] === undefined) return false;
if (!('availableFor' in value) || value['availableFor'] === undefined) return false;
if (!('finetuning' in value) || value['finetuning'] === undefined) return false;
if (!('pricing' in value) || value['pricing'] === undefined) return false;
if (!('marketing' in value) || value['marketing'] === undefined) return false;
return true;
}
export function PublicModelFromJSON(json: any): PublicModel {
return PublicModelFromJSONTyped(json, false);
}
export function PublicModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicModel {
if (json == null) {
return json;
}
return {
'id': json['id'],
'slug': json['slug'],
'display': json['display'],
'provider': json['provider'],
'group': json['group'],
'category': PublicModelCategoryEnumFromJSON(json['category']),
'hfModelId': json['hf_model_id'],
'tier': json['tier'],
'params': json['params'],
'totalParamsB': json['total_params_b'],
'contextLength': json['context_length'],
'supportsToolCalling': json['supports_tool_calling'],
'useCases': json['use_cases'],
'type': json['type'],
'hardware': json['hardware'],
'availableFor': PublicModelAvailabilityFromJSON(json['available_for']),
'finetuning': PublicModelFinetuningFromJSON(json['finetuning']),
'pricing': PublicModelPricingFromJSON(json['pricing']),
'marketing': PublicModelMarketingFromJSON(json['marketing']),
};
}
export function PublicModelToJSON(json: any): PublicModel {
return PublicModelToJSONTyped(json, false);
}
export function PublicModelToJSONTyped(value?: PublicModel | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'slug': value['slug'],
'display': value['display'],
'provider': value['provider'],
'group': value['group'],
'category': PublicModelCategoryEnumToJSON(value['category']),
'hf_model_id': value['hfModelId'],
'tier': value['tier'],
'params': value['params'],
'total_params_b': value['totalParamsB'],
'context_length': value['contextLength'],
'supports_tool_calling': value['supportsToolCalling'],
'use_cases': value['useCases'],
'type': value['type'],
'hardware': value['hardware'],
'available_for': PublicModelAvailabilityToJSON(value['availableFor']),
'finetuning': PublicModelFinetuningToJSON(value['finetuning']),
'pricing': PublicModelPricingToJSON(value['pricing']),
'marketing': PublicModelMarketingToJSON(value['marketing']),
};
}