{"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":281,"sourceCode":"      case \"docker-model-runner\":\n        if (!process.env.DOCKER_MODEL_RUNNER_BASE_PATH)\n          throw new Error(\n            \"Docker Model Runner base path must be provided to use agents.\"\n          );\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      default:\n        throw new Error(\n          \"No workspace agent provider set. Please set your agent provider in the workspace's settings\"\n        );\n    }","sourceCodeStart":263,"sourceCodeEnd":299,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/526360e320da9d1b36074be5ed64fe76e5bbfbbd/server/utils/agents/index.js#L263-L299","documentation":"Thrown by checkSetup() (server/utils/agents/index.js:128) when the resolved agent provider is 'lemonade' but process.env.LEMONADE_LLM_BASE_PATH is unset/empty. It is a precondition gate in agent.init() ensuring the AMD Lemonade local server endpoint is configured before use.","triggerScenarios":"A chat turn calls agent.init(); this.provider resolves to 'lemonade'; case 'lemonade' runs and process.env.LEMONADE_LLM_BASE_PATH is falsy.","commonSituations":"Lemonade picked as agent provider but base path never set; the local server moved port; .env updated but server not restarted.","solutions":["Set LEMONADE_LLM_BASE_PATH in .env (e.g. http://127.0.0.1:8000/v1) and restart the server.","Confirm the Lemonade server is running and reachable at that URL.","Switch provider if Lemonade is not intended."],"exampleFix":"// before (.env)\nLEMONADE_LLM_BASE_PATH=\n// after (.env)\nLEMONADE_LLM_BASE_PATH=http://127.0.0.1:8000/v1","handlingStrategy":"validation","validationCode":"function assertLemonadeReady(workspaceAgentProvider) {\n  const using = workspaceAgentProvider === 'lemonade' || process.env.LLM_PROVIDER === 'lemonade';\n  if (using && !process.env.LEMONADE_LLM_BASE_PATH)\n    throw new Error('LEMONADE_LLM_BASE_PATH missing - set it before starting an agent.');\n}","typeGuard":null,"tryCatchPattern":"try { await agent.init(); } catch (e) { if (/Lemonade base path must be provided/.test(e.message)) return showProviderConfig('lemonade'); throw e; }","preventionTips":["Validate base-path providers at boot.","Restart after .env edits.","Confirm the local server is running before enabling the provider."],"tags":["config","env","agent-provider","lemonade","local-llm","agents"],"backgroundTag":null,"analyzedSha":"526360e320da9d1b36074be5ed64fe76e5bbfbbd","analyzedAt":"2026-08-13T01:45:47.170Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}