Skip to content

UpdateCustomModelResponseBody

Response object containing full details about a registered custom model including health status.

Example Usage

typescript
import { UpdateCustomModelResponseBody } from "@meetkai/mka1/models/operations";

let value: UpdateCustomModelResponseBody = {
  id: "<id>",
  name: "<value>",
  baseUrl: "https://sniveling-galoshes.com",
  capabilities: {
    chat: true,
    completion: true,
    embedding: false,
    image: true,
    transcription: true,
    speech: true,
  },
  isAvailable: true,
  lastHealthCheck: new Date("2024-07-03T19:58:53.670Z"),
  createdAt: new Date("2024-05-08T15:23:05.439Z"),
  updatedAt: new Date("2024-11-16T16:36:08.607Z"),
};

Fields

FieldTypeRequiredDescription
idstring✔️Unique identifier for this custom model
namestring✔️Name of the custom model
baseUrlstring✔️Base URL of the custom model API endpoint
capabilitiesoperations.UpdateCustomModelCapabilities✔️Object describing the capabilities of this custom model
maxTokensnumberDefault maximum tokens for generation
contextWindownumberContext window size (total tokens)
temperaturenumberDefault temperature setting (0-2)
topPnumberDefault nucleus sampling parameter (0-1)
frequencyPenaltynumberDefault frequency penalty (-2 to 2)
presencePenaltynumberDefault presence penalty (-2 to 2)
rpmnumberRate limit in requests per minute
isAvailableboolean✔️Whether the model is currently available and passing health checks
lastHealthCheckDate✔️Timestamp of the most recent health check
healthCheckErrorstringError message from the last health check, if the check failed
createdAtDate✔️Timestamp when this custom model was registered
updatedAtDate✔️Timestamp when this custom model configuration was last updated