{"record":{"id":"dd770486c790e6fc","repo":"continuedev/continue","slug":"modelname-not-found-in-the-ollama-registry","errorCode":null,"errorMessage":"'${modelName}' not found in the Ollama registry!","messagePattern":"'(.+?)' not found in the Ollama registry!","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"core/llm/llms/Ollama.ts","lineNumber":767,"sourceCode":"    }\n\n    const data = await resp.json();\n    const embedding: number[][] = data.embeddings;\n\n    if (!embedding || embedding.length === 0) {\n      throw new Error(\"Ollama generated empty embedding\");\n    }\n    return embedding;\n  }\n\n  public async installModel(\n    modelName: string,\n    signal: AbortSignal,\n    progressReporter?: (task: string, increment: number, total: number) => void,\n  ): Promise<any> {\n    const modelInfo = await getRemoteModelInfo(modelName, signal);\n    if (!modelInfo) {\n      throw new Error(`'${modelName}' not found in the Ollama registry!`);\n    }\n\n    const release = await Ollama.modelsBeingInstalledMutex.acquire();\n    try {\n      if (Ollama.modelsBeingInstalled.has(modelName)) {\n        throw new Error(`Model '${modelName}' is already being installed.`);\n      }\n      Ollama.modelsBeingInstalled.add(modelName);\n    } finally {\n      release();\n    }\n\n    try {\n      const response = await fetch(this.getEndpoint(\"api/pull\"), {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application/json\",\n          Authorization: `Bearer ${this.apiKey}`,","sourceCodeStart":749,"sourceCodeEnd":785,"githubUrl":"https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/core/llm/llms/Ollama.ts#L749-L785","documentation":"Thrown by Ollama.installModel when getRemoteModelInfo returns null, i.e. the model name couldn't be found in the Ollama registry lookup. The name must match a registry tag exactly (including namespaces and tag suffixes).","triggerScenarios":"Calling installModel with a name that has no registry entry: typo, missing tag (e.g. 'llama3.1' vs 'llama3.1:8b'), or a registry API/network failure that yields no info.","commonSituations":"User typos in the model name, using HuggingFace-style ids (meta-llama/Llama-3.1-8B) instead of Ollama library names, or ollama.com being unreachable.","solutions":["Search https://ollama.com/library for the exact name+tag and retry","Use the plain library name (e.g. 'qwen2.5-coder:7b'), not a HF repo id","If the name is right, check network access to the Ollama registry"],"exampleFix":"# before\ninstallModel('meta-llama/Llama-3.1-8B-Instruct')\n# after\ninstallModel('llama3.1:8b')","handlingStrategy":"validation","validationCode":"const info = await getRemoteModelInfo(modelName, signal);\nif (!info) throw new Error(`Check spelling at https://ollama.com/library: ${modelName}`);","typeGuard":"function isRegistryLookupFailure(e: unknown): boolean { return e instanceof Error && /not found in the Ollama registry/.test(e.message); }","tryCatchPattern":"try { await Ollama.installModel(name, signal); }\ncatch (e) { if (isRegistryLookupFailure(e)) promptUserForExactName(); else throw e; }","preventionTips":["Copy model names verbatim from ollama.com/library including tags","Offer a searchable model list in the UI instead of free-text entry"],"tags":["ollama","model-install","registry","not-found"],"backgroundTag":"model-not-found-in-registry","analyzedSha":"5522c6f44ca0ac3528b37244818fbfa39b5af470","analyzedAt":"2026-08-27T11:28:54.683Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}