Skip to content

The platform for continuously improving AI agents.

2.3 KB
Raw Blame
/* 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 { FinetuningCatalogTrainingType } from './FinetuningCatalogTrainingType';
import {
    FinetuningCatalogTrainingTypeFromJSON,
    FinetuningCatalogTrainingTypeFromJSONTyped,
    FinetuningCatalogTrainingTypeToJSON,
    FinetuningCatalogTrainingTypeToJSONTyped,
} from './FinetuningCatalogTrainingType';

/**
 *
 * @export
 * @interface PublicModelFinetuning
 */
export interface PublicModelFinetuning {
    /**
     *
     * @type {number}
     * @memberof PublicModelFinetuning
     */
    contextLength: number | null;
    /**
     *
     * @type {FinetuningCatalogTrainingType}
     * @memberof PublicModelFinetuning
     */
    trainingType: FinetuningCatalogTrainingType;
}

/**
 * Check if a given object implements the PublicModelFinetuning interface.
 */
export function instanceOfPublicModelFinetuning(value: object): value is PublicModelFinetuning {
    if (!('contextLength' in value) || value['contextLength'] === undefined) return false;
    if (!('trainingType' in value) || value['trainingType'] === undefined) return false;
    return true;
}

export function PublicModelFinetuningFromJSON(json: any): PublicModelFinetuning {
    return PublicModelFinetuningFromJSONTyped(json, false);
}

export function PublicModelFinetuningFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicModelFinetuning {
    if (json == null) {
        return json;
    }
    return {

        'contextLength': json['context_length'],
        'trainingType': FinetuningCatalogTrainingTypeFromJSON(json['training_type']),
    };
}

export function PublicModelFinetuningToJSON(json: any): PublicModelFinetuning {
    return PublicModelFinetuningToJSONTyped(json, false);
}

export function PublicModelFinetuningToJSONTyped(value?: PublicModelFinetuning | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'context_length': value['contextLength'],
        'training_type': FinetuningCatalogTrainingTypeToJSON(value['trainingType']),
    };
}