Langfuse launches AI Gateway Learn more
FaqWhy do code evaluators fail with "Code eval dispatcher is not configured"?

Why do code evaluators fail with "Code eval dispatcher is not configured"?

Code evaluators run your evaluation code outside the main Langfuse process. On self-hosted Langfuse you choose where that code runs with LANGFUSE_CODE_EVAL_DISPATCHER. In production builds this variable has no default, so testing or running a code evaluator fails with Code eval dispatcher is not configured until you set it.

Set the variable on both the web and worker containers:

ValueRunsNotes
aws-lambdaPython and TypeScriptExecutes code in AWS Lambda functions. Configure the function names and IAM permissions as described in AWS Lambda dispatcher.
externalPython and TypeScript, or the subset in LANGFUSE_CODE_EVAL_EXTERNAL_LANGUAGESSends code to an HTTP executor you operate, with a signed request. Set the endpoint and signing secret as described in External HTTP dispatcher.
insecure-localTypeScript/JavaScript onlyRuns code inside the worker process. Not a sandbox; use only when every user who can create evaluators is trusted. See Local insecure dispatcher.

Restart web and worker after changing the variable. Code evaluators are available in open-source self-hosted Langfuse; no license key is required.


Was this page helpful?

Last updated on