proposit-core
    Preparing search index...

    Type Alias TChatCompletionsProviderConfig

    type TChatCompletionsProviderConfig = {
        apiKey?: string;
        baseUrl?: string;
        fetch?: TChatCompletionsFetch;
        model?: string;
        requestTimeoutMs?: number;
    }
    Index

    Properties

    apiKey?: string

    Bearer token. Defaults to a throwaway (local servers ignore it).

    baseUrl?: string

    Endpoint base URL (including any /v1 prefix). Defaults to http://127.0.0.1:46373/v1.

    Injectable fetch. Defaults to globalThis.fetch. Tests inject mocks; runtimes without a global fetch (older Node) inject a polyfill.

    model?: string

    Model identifier. Defaults to local-coder.

    requestTimeoutMs?: number

    Per-request HTTP timeout in milliseconds, enforced via AbortSignal.timeout. Defaults to 1_200_000 (20 min) — local generations on a large reasoning model legitimately take minutes per structured-output stage. Set 0 to disable the timeout.