Chatoyant - v0.10.0
    Preparing search index...

    Interface ChatConfig

    Chat configuration options.

    interface ChatConfig {
        model?: string;
        defaults?: GenerateOptions;
        localBaseUrl?: string;
        localApiKey?: string;
        localTimeout?: number;
    }
    Index

    Properties

    model?: string

    Model to use (e.g., "gpt-4o", "claude-sonnet-4-20250514", "grok-3").

    "gpt-4o"
    
    defaults?: GenerateOptions

    Default generation options applied to all calls.

    localBaseUrl?: string

    Base URL for the local provider. Sets the endpoint for all calls in this Chat instance when the local provider is used (either explicitly via provider: 'local' or via automatic fallback for unrecognised model names). Overrides the LOCAL_BASE_URL environment variable.

    new Chat({
    model: 'Qwen3.5-9B-MLX-4bit',
    localBaseUrl: 'http://127.0.0.1:8765/v1',
    })
    localApiKey?: string

    API key for the local provider. Overrides the LOCAL_API_KEY environment variable. Defaults to "local" for servers that don't validate keys.

    localTimeout?: number

    Request timeout in ms for the local provider. Defaults to 60 000 ms. Increase for slow or large local models.