{"record":{"id":"517cb23a34ad47d1","repo":"exo-explore/exo","slug":"model-not-found-model-name","errorCode":null,"errorMessage":"Model not found: {model_name}","messagePattern":"Model not found: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":1726,"sourceCode":"                        family=card.family or None,\n                        quantization_level=card.quantization or None,\n                    ),\n                )\n                for card in cards\n            ]\n        )\n\n    async def ollama_show(self, request: Request) -> OllamaShowResponse:\n        \"\"\"Returns model information in Ollama show format.\"\"\"\n        body = await request.body()\n        payload = OllamaShowRequest.model_validate_json(body)\n        model_name = payload.name or payload.model\n        if not model_name:\n            raise HTTPException(status_code=400, detail=\"name or model is required\")\n        try:\n            card = await ModelCard.load(ModelId(model_name))\n        except Exception as exc:\n            raise HTTPException(\n                status_code=404, detail=f\"Model not found: {model_name}\"\n            ) from exc\n\n        capabilities: list[OllamaCapability] = []\n        if ModelTask.TextGeneration in card.tasks:\n            capabilities.extend((\"completion\", \"tools\"))\n        if card.vision is not None:\n            capabilities.append(\"vision\")\n\n        architecture = card.family or \"unknown\"\n        model_info: dict[str, Any] = {\n            \"general.architecture\": architecture,\n            \"general.basename\": card.base_model or str(card.model_id),\n        }\n        if card.context_length > 0:\n            model_info[f\"{architecture}.context_length\"] = card.context_length\n\n        return OllamaShowResponse(","sourceCodeStart":1708,"sourceCodeEnd":1744,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L1708-L1744","documentation":"Error \"Model not found: {model_name}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:1726 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}