{"record":{"id":"ee0255240aaa4ee3","repo":"Mintplex-Labs/anything-llm","slug":"omlx-base-path-must-be-provided-to-use-agents","errorCode":null,"errorMessage":"OMLX base path must be provided to use agents.","messagePattern":"OMLX base path must be provided to use agents\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/utils/agents/index.js","lineNumber":283,"sourceCode":"          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        )\n          throw new Error(\n            \"Vertex AI API key and project ID must be provided to use agents.\"\n          );\n        break;","sourceCodeStart":265,"sourceCodeEnd":301,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/20f6d3546c1938bfea1ad304f58a592dddcc5948/server/utils/agents/index.js#L265-L301","documentation":"Provider setup guard in AgentHandler.checkSetup: the selected agent provider is 'omlx' but the OMLX_LLM_BASE_PATH environment variable is empty/unset, so the agent has no endpoint for the oMLX server and setup aborts.","triggerScenarios":"OMLX 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 OMLX_BASE_PATH environment variable.","Ensure the OMLX 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"}