Skip to main content

createModelRegistry()

createModelRegistry(request: CreateModelRegistryRequest): Promise<CompanyModel>

Defined in: packages/core/src/index.ts:2834

Register a new AI model in the company registry

Parameters

ParameterTypeDescription
requestCreateModelRegistryRequestModel registration data

Returns

Promise<CompanyModel>

The created model configuration

Throws

400 - Invalid model data

Throws

401 - Not authenticated

Throws

403 - Admin privileges required

Example

import { createModelRegistry } from "@cpod/sdk";

const model = await createModelRegistry({
name: "GPT-4 Custom",
provider: "openai",
model_id: "gpt-4",
api_key: "sk-...",
});