{"record":{"id":"22b4eceb5654accc","repo":"Mintplex-Labs/anything-llm","slug":"no-privatemode-base-path-was-set","errorCode":null,"errorMessage":"No Privatemode Base Path was set.","messagePattern":"No Privatemode Base Path was set\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"server/utils/AiProviders/privatemode/index.js","lineNumber":21,"sourceCode":"  handleDefaultStreamResponseV2,\n  formatChatHistory,\n} = require(\"../../helpers/chat/responses\");\nconst {\n  LLMPerformanceMonitor,\n} = require(\"../../helpers/chat/LLMPerformanceMonitor\");\n\nclass PrivatemodeLLM {\n  static contextWindows = {\n    \"leon-se/gemma-3-27b-it-fp8-dynamic\": 128000,\n    \"gemma-3-27b\": 128000,\n    \"qwen3-coder-30b-a3b\": 128000,\n    \"gpt-oss-120b\": 128000,\n    \"openai/gpt-oss-120b\": 128000,\n  };\n\n  constructor(embedder = null, modelPreference = null) {\n    if (!process.env.PRIVATEMODE_LLM_BASE_PATH)\n      throw new Error(\"No Privatemode Base Path was set.\");\n\n    this.className = \"PrivatemodeLLM\";\n    const { OpenAI: OpenAIApi } = require(\"openai\");\n    this.client = new OpenAIApi({\n      baseURL: PrivatemodeLLM.parseBasePath(),\n      apiKey: null,\n    });\n\n    this.model = modelPreference || process.env.PRIVATEMODE_LLM_MODEL_PREF;\n    this.limits = {\n      history: this.promptWindowLimit() * 0.15,\n      system: this.promptWindowLimit() * 0.15,\n      user: this.promptWindowLimit() * 0.7,\n    };\n\n    this.embedder = embedder ?? new NativeEmbedder();\n    this.defaultTemp = 0.7;\n    this.log(","sourceCodeStart":3,"sourceCodeEnd":39,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/server/utils/AiProviders/privatemode/index.js#L3-L39","documentation":"Configuration guard thrown by the PrivatemodeLLM constructor: the Privatemode provider is active but PRIVATEMODE_LLM_BASE_PATH is empty/unset, so the privacy-focused inference endpoint URL is unknown and the client cannot be constructed.","triggerScenarios":"Thrown at provider construction when no Privatemode base path is configured.","commonSituations":"Privatemode selected without a base path.","solutions":["Set the Privatemode base path in provider settings."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3aec848f2885144aa8f1e53b9731a04310d5d558","analyzedAt":"2026-08-18T10:02:21.017Z","contentChangedAt":"2026-08-18T10:02:21.017Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}