BYOM - Bring Your Own Model
MD
R
MarkdownBYOM refers to a feature or architectural capability of a software platform (usually a cloud service, data warehouse, or SaaS application) that allows customers to import, deploy, and run their own custom-trained machine learning models, rather than forcing them to use the platform's pre-built, proprietary models.
/**
- User-defined model configuration file
- Users can define custom API endpoints and model configurations in this file.
- These configurations will be directly loaded to the client, allowing direct
- connection and invocation of these APIs.
- Configuration structure:
- {
- models: [
-
{ -
key: string, // Unique identifier (required) -
name: string, // Model display name (required) -
description?: string, // Model description (optional) -
baseURL: string, // API base URL (required) -
endpoint?: string, // API endpoint path, defaults to /chat/completions -
modelName?: string, // Model name (used when sending to API), defaults to key -
apiKey?: string, // API key (optional) -
headers?: Record<string, string>, // Custom request headers (optional) -
maxTokens?: number, // Maximum tokens to generate (optional) -
temperature?: number, // Temperature parameter (optional) -
requestTransformer?: function, // Request body transform function (optional) -
responseTransformer?: function // Response transform function (optional) -
} - ]
- } */
module.exports = { models: [ // Add your custom model configuration here // Examples are commented below
// Example: Standard OpenAI-compatible API
// {
// key: 'custom-gpt-4',
// name: 'Custom GPT-4',
// description: 'My custom GPT-4 model',
// baseURL: 'https://api.openai.com/v1',
// modelName: 'gpt-4',
// apiKey: 'sk-xxxxxxxxxxxxxx',
// maxTokens: 4096,
// temperature: 0.7
// },
] };
Created on 3/26/2026