Documentation
    Preparing search index...

    Interface LlmProviderEndpoint

    One configured provider endpoint. The credential is optional for local servers.

    interface LlmProviderEndpoint {
        baseUrl: string;
        credential?: string;
        credentialHeader?: LlmCredentialHeader;
        headers?: Readonly<Record<string, string>>;
        maxOutputTokens?: number;
        model: string;
        protocol: LlmProviderProtocol;
        requiresOpaqueReasoning?: boolean;
        responses?: LlmResponsesOptions;
    }
    Index

    Properties

    baseUrl: string

    API root such as https://api.openai.com/v1, without a trailing slash.

    credential?: string

    API key or token. Sent only on the request to baseUrl.

    credentialHeader?: LlmCredentialHeader

    Override the protocol's default credential header (Azure OpenAI uses api-key).

    headers?: Readonly<Record<string, string>>

    Extra static headers, such as OpenRouter attribution. Never used for credentials.

    maxOutputTokens?: number

    Output token ceiling. Anthropic requires one; the default is 4096. A request's maxTokens can only lower it.

    model: string

    Exact provider model identifier.

    requiresOpaqueReasoning?: boolean

    Whether continuing a conversation that contains toolCall parts needs opaque or signed reasoning state NAP-LLM cannot represent (LLM-C17). When true, history with toolCall parts is unsupported before any request is built. Gemini defaults it from the model name (3 and later); an explicit value wins.

    Options for the openai-responses dialect.