@airbolt/react-sdk
    Preparing search index...

    Interface UseChatOptions

    Options for the useChat hook

    interface UseChatOptions {
        baseURL?: string;
        initialMessages?: Message[];
        model?: string;
        onChunk?: (chunk: string) => void;
        provider?: "openai" | "anthropic";
        streaming?: boolean;
        system?: string;
    }
    Index

    Properties

    baseURL?: string

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

    initialMessages?: Message[]

    Initial messages to populate the chat history

    model?: string

    Specific model to use (e.g., 'gpt-4', 'claude-3-5-sonnet-20241022')

    onChunk?: (chunk: string) => void

    Callback for streaming chunks

    provider?: "openai" | "anthropic"

    AI provider to use: 'openai' or 'anthropic'

    streaming?: boolean

    Enable streaming responses

    true
    
    system?: string

    System prompt to include with the messages