{"record":{"id":"dacb8ffc65a255dc","repo":"exo-explore/exo","slug":"name-or-model-is-required","errorCode":null,"errorMessage":"name or model is required","messagePattern":"name or model is required","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":1722,"sourceCode":"                    modified_at=now,\n                    size=card.storage_size.in_bytes,\n                    digest=\"sha256:000000000000\",\n                    details=OllamaModelDetails(\n                        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        }","sourceCodeStart":1704,"sourceCodeEnd":1740,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L1704-L1740","documentation":"Error \"name or model is required\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:1722 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"}