{"record":{"id":"890f84e94f0c4eb5","repo":"Mintplex-Labs/anything-llm","slug":"lemonade-base-path-must-be-provided-to-use-agents","errorCode":null,"errorMessage":"Lemonade base path must be provided to use agents.","messagePattern":"Lemonade base path must be provided to use agents\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/utils/agents/index.js","lineNumber":279,"sourceCode":"          throw new Error(\"Cohere API key must be provided to use agents.\");\n        break;\n      case \"llmman\":\n        if (!process.env.LLMMAN_BASE_PATH)\n          throw new Error(\"llmman base path must be provided to use agents.\");\n        break;\n      case \"privatemode\":\n        if (!process.env.PRIVATEMODE_LLM_BASE_PATH)\n          throw new Error(\n            \"Privatemode base path must be provided to use agents.\"\n          );\n        break;\n      case \"sambanova\":\n        if (!process.env.SAMBANOVA_LLM_API_KEY)\n          throw new Error(\"SambaNova API key must be provided to use agents.\");\n        break;\n      case \"lemonade\":\n        if (!process.env.LEMONADE_LLM_BASE_PATH)\n          throw new Error(\"Lemonade base path must be provided to use agents.\");\n        break;\n      case \"omlx\":\n        if (!process.env.OMLX_LLM_BASE_PATH)\n          throw new Error(\"OMLX base path must be provided to use agents.\");\n        break;\n      case \"minimax\":\n        if (!process.env.MINIMAX_API_KEY)\n          throw new Error(\"Minimax API key must be provided to use agents.\");\n        break;\n      case \"cerebras\":\n        if (!process.env.CEREBRAS_API_KEY)\n          throw new Error(\"Cerebras API key must be provided to use agents.\");\n        break;\n      case \"vertex\":\n        if (\n          !process.env.VERTEX_AI_LLM_API_KEY ||\n          !process.env.VERTEX_AI_LLM_PROJECT_ID\n        )","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/20f6d3546c1938bfea1ad304f58a592dddcc5948/server/utils/agents/index.js#L261-L297","documentation":"Provider setup guard in AgentHandler.checkSetup: the selected agent provider is 'lemonade' but LEMONADE_LLM_BASE_PATH is empty/unset, so the agent has no URL for the local Lemonade inference server and setup aborts.","triggerScenarios":"Lemonade was selected as the agent provider but no base path is configured.","commonSituations":"This error is raised at runtime in server/utils/agents/index.js. It occurs when the required configuration for this provider is missing or invalid (unset environment variables, empty API key or base path), when the external service is unreachable or returns an unexpected response, or when invalid input reaches the call site. To prevent it, validate the relevant provider settings and environment variables at startup and confirm the service is reachable before this code path executes.","solutions":["Set the LEMONADE_BASE_PATH environment variable.","Ensure the Lemonade server is running."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"20f6d3546c1938bfea1ad304f58a592dddcc5948","analyzedAt":"2026-08-18T10:02:21.017Z","contentChangedAt":"2026-08-18T10:02:21.017Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}