claudius-chat-widget
    Preparing search index...

    Interface ChatApiClientOptions

    Options for ChatApiClient.

    interface ChatApiClientOptions {
        citations?: boolean;
        debounceMs?: number;
        maxRetries?: number;
        timeoutMs?: number;
    }
    Index

    Properties

    citations?: boolean

    Send citations: true with every request, asking the worker to number its retrieved excerpts and have the model cite them as [n].

    false

    debounceMs?: number

    Minimum gap between sends, in milliseconds. A send inside this window rejects with DebounceError. Set to 0 to disable.

    300

    maxRetries?: number

    Maximum retries after the first attempt, for retryable failures (HTTP 429/503, network errors, timeouts).

    2

    timeoutMs?: number

    Per-attempt request timeout in milliseconds. Aborts the in-flight fetch via AbortController and surfaces a retryable ChatApiError with code "TIMEOUT". Set to 0 to disable.

    30000