Chatoyant - v0.9.0
    Preparing search index...

    Interface CommonOptions

    Common options shared across all generation methods.

    interface CommonOptions {
        provider?: ProviderId;
        timeout?: number;
        retries?: number;
        localBaseUrl?: string;
        localApiKey?: string;
        localTimeout?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    provider?: ProviderId

    Override the provider (auto-detected from model by default).

    timeout?: number

    Request timeout in milliseconds.

    120000
    
    retries?: number

    Number of retries on failure.

    3
    
    localBaseUrl?: string

    Base URL for the local provider. Overrides the LOCAL_BASE_URL environment variable. Required when using provider: 'local' without LOCAL_BASE_URL set.

    'http://127.0.0.1:11434/v1'  // Ollama
    
    'http://127.0.0.1:8765/v1'   // mlx-lm / omlx
    
    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.