Langfuse JS/TS SDKs
    Preparing search index...

    Interface EvaluatorModelConfig

    Optional explicit model configuration for an evaluator.

    If omitted, Langfuse uses the project's default evaluation model. If provided, the model must be available to the project when the evaluator or evaluation rule is enabled.

    To discover valid configured provider values for a project, call GET /api/public/llm-connections and read the provider field from the returned connections. Use a provider value that matches one of the connections already configured in the same project.

    Recovery guidance:

    • If evaluator creation returns 422 with code=evaluator_preflight_failed, either provide a valid explicit modelConfig here or configure the project's default evaluation model, then retry the same request.
    {
    * provider: "openai",
    * model: "gpt-4.1-mini"
    * }
    interface EvaluatorModelConfig {
        model: string;
        provider: string;
    }
    Index

    Properties

    Properties

    model: string

    Model identifier exposed by the provider, for example gpt-4.1-mini.

    provider: string

    Provider identifier to use for this evaluator, for example openai or anthropic.

    To discover valid values for the current project, call GET /api/public/llm-connections and use one of the returned provider values.