{"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":285,"sourceCode":"          );\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    }\n  }\n\n  /**\n   * Finds the default model for a given provider. If no default model is set for it's associated ENV then","sourceCodeStart":267,"sourceCodeEnd":303,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/526360e320da9d1b36074be5ed64fe76e5bbfbbd/server/utils/agents/index.js#L267-L303","documentation":"Thrown by checkSetup() (server/utils/agents/index.js:128) when the resolved agent provider is 'omlx' but process.env.OMLX_LLM_BASE_PATH is unset/empty. It is a precondition gate in agent.init() ensuring the OMLX endpoint is configured before use.","triggerScenarios":"A chat turn calls agent.init(); this.provider resolves to 'omlx'; case 'omlx' runs and process.env.OMLX_LLM_BASE_PATH is falsy.","commonSituations":"OMLX selected as agent provider but base path never saved; endpoint URL changed; .env updated but server not restarted.","solutions":["Set OMLX_LLM_BASE_PATH in .env to the OMLX endpoint and restart the server.","Confirm the endpoint is reachable.","Switch provider if OMLX is not intended."],"exampleFix":"// before (.env)\nOMLX_LLM_BASE_PATH=\n// after (.env)\nOMLX_LLM_BASE_PATH=http://your-omlx-host/v1","handlingStrategy":"validation","validationCode":"function assertOmlxReady(workspaceAgentProvider) {\n  const using = workspaceAgentProvider === 'omlx' || process.env.LLM_PROVIDER === 'omlx';\n  if (using && !process.env.OMLX_LLM_BASE_PATH)\n    throw new Error('OMLX_LLM_BASE_PATH missing - set it before starting an agent.');\n}","typeGuard":null,"tryCatchPattern":"try { await agent.init(); } catch (e) { if (/OMLX base path must be provided/.test(e.message)) return showProviderConfig('omlx'); throw e; }","preventionTips":["Validate base-path providers at boot.","Restart after .env edits.","Confirm the endpoint is reachable before enabling the provider."],"tags":["config","env","agent-provider","omlx","local-llm","agents"],"backgroundTag":null,"analyzedSha":"526360e320da9d1b36074be5ed64fe76e5bbfbbd","analyzedAt":"2026-08-13T01:45:47.170Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}