Langfuse JS/TS SDKs
    Preparing search index...

    Interface UpsertLlmConnectionRequest

    Request to create or update an LLM connection (upsert)

    interface UpsertLlmConnectionRequest {
        adapter: LlmAdapter;
        baseURL?: string;
        customModels?: string[];
        extraHeaders?: Record<string, string>;
        provider: string;
        secretKey: string;
        withDefaultModels?: boolean;
    }
    Index

    Properties

    adapter: LlmAdapter

    The adapter used to interface with the LLM

    baseURL?: string

    Custom base URL for the LLM API

    customModels?: string[]

    List of custom model names

    extraHeaders?: Record<string, string>

    Extra headers to send with requests

    provider: string

    Provider name (e.g., 'openai', 'my-gateway'). Must be unique in project, used for upserting.

    secretKey: string

    Secret key for the LLM API.

    withDefaultModels?: boolean

    Whether to include default models. Default is true.