{"record":{"id":"1f7d68b8e2a10ed3","repo":"microsoft/vscode","slug":"ollama-server-version-versioninfo-version-is-no","errorCode":null,"errorMessage":"Ollama server version ${versionInfo.version} is not supported. Please upgrade to version ${MINIMUM_OLLAMA_VERSION} or higher. Visit https://ollama.ai for upgrade instructions.","messagePattern":"Ollama server version (.+?) is not supported\\. Please upgrade to version (.+?) or higher\\. Visit https://ollama\\.ai for upgrade instructions\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"extensions/copilot/src/extension/byok/vscode-node/ollamaProvider.ts","lineNumber":213,"sourceCode":"\t\t\tcallSite: 'ollama-show',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json'\n\t\t\t},\n\t\t\tbody: JSON.stringify({ model: modelId })\n\t\t});\n\t\treturn response.json() as unknown as OllamaModelInfoAPIResponse;\n\t}\n\t/**\n\t * Check if the connected Ollama server version meets the minimum requirements\n\t * @throws Error if version is below minimum or version check fails\n\t */\n\tprivate async _checkOllamaVersion(ollamaBaseUrl: string): Promise<void> {\n\t\ttry {\n\t\t\tconst response = await this._fetcherService.fetch(`${ollamaBaseUrl}/api/version`, { method: 'GET', callSite: 'ollama-version' });\n\t\t\tconst versionInfo = await response.json() as OllamaVersionResponse;\n\n\t\t\tif (!this._isVersionSupported(versionInfo.version)) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Ollama server version ${versionInfo.version} is not supported. ` +\n\t\t\t\t\t`Please upgrade to version ${MINIMUM_OLLAMA_VERSION} or higher. ` +\n\t\t\t\t\t`Visit https://ollama.ai for upgrade instructions.`\n\t\t\t\t);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (e instanceof Error && e.message.includes('Ollama server version')) {\n\t\t\t\t// Re-throw our custom version error\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\t// If version endpoint fails\n\t\t\tthrow new Error(\n\t\t\t\t`Unable to verify Ollama server version. Please ensure you have Ollama version ${MINIMUM_OLLAMA_VERSION} or higher installed. ` +\n\t\t\t\t`If you're running an older version, please upgrade from https://ollama.ai`\n\t\t\t);\n\t\t}\n\t}\n}","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/microsoft/vscode/blob/a94b963a32aa9749d69504576791fa29700ae46d/extensions/copilot/src/extension/byok/vscode-node/ollamaProvider.ts#L195-L231","documentation":"Error \"Ollama server version ${versionInfo.version} is not supported. Please upgrade to version ${MINIMUM_OLLAMA_VERSION} or higher. Visit https://ollama.ai for upgrade instructions.\" thrown in microsoft/vscode.","triggerScenarios":"Thrown at extensions/copilot/src/extension/byok/vscode-node/ollamaProvider.ts:213 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"a94b963a32aa9749d69504576791fa29700ae46d","analyzedAt":"2026-08-12T01:08:56.794Z","schemaVersion":2},"datasetVersion":"2026-08-12T06:17:24.410Z"}