AskSQL API Reference (core v0.10.0)
    Preparing search index...

    Interface LlmSettings

    interface LlmSettings {
        frequencyPenalty?: number;
        maxOutputTokens?: number;
        maxRetries?: number;
        presencePenalty?: number;
        providerOptions?: Record<string, Record<string, unknown>>;
        seed?: number;
        stopSequences?: readonly string[];
        temperature?: number;
        timeoutMs?: number;
        topK?: number;
        topP?: number;
    }
    Index
    frequencyPenalty?: number
    maxOutputTokens?: number
    maxRetries?: number

    Bounded retries for 429/5xx/network faults. Default 2.

    presencePenalty?: number
    providerOptions?: Record<string, Record<string, unknown>>

    Provider-specific options passed straight through to the AI SDK (providerOptions).

    seed?: number

    Deterministic seed where the provider supports it.

    stopSequences?: readonly string[]
    temperature?: number

    Sampling temperature. Default 0 (deterministic - best for SQL).

    timeoutMs?: number

    Overall per-call ceiling. Default 60_000.

    topK?: number

    Top-k sampling (supported by some providers, e.g. Anthropic/Google).

    topP?: number

    Nucleus sampling. Prefer either temperature OR topP, not both.