@airbolt/sdk
    Preparing search index...

    Interface ChatOptions

    Options for the chat function

    interface ChatOptions {
        baseURL?: string;
        getAuthToken?: () => string | Promise<string>;
        model?: string;
        provider?: "openai" | "anthropic";
        system?: string;
    }
    Index

    Properties

    baseURL?: string

    Base URL for the Airbolt API. Defaults to environment variable or production URL.

    getAuthToken?: () => string | Promise<string>

    Custom auth token getter function for BYOA (Bring Your Own Auth)

    getAuthToken: () => myAuth.getToken()
    
    model?: string

    Specific model to use (e.g., 'gpt-4', 'claude-3-5-sonnet-20241022'). Defaults to the provider's default model.

    provider?: "openai" | "anthropic"

    AI provider to use: 'openai' or 'anthropic'. Defaults to backend environment setting.

    system?: string

    System prompt to include with the messages