{"record":{"id":"132f09bfd146e807","repo":"exo-explore/exo","slug":"custom-model-card-not-found","errorCode":null,"errorMessage":"Custom model card not found","messagePattern":"Custom model card not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":1857,"sourceCode":"        model_cards.card_cache.cc[card.model_id] = card\n\n        return ModelListModel(\n            id=card.model_id,\n            hugging_face_id=card.model_id,\n            name=card.model_id.short(),\n            description=\"\",\n            tags=[],\n            storage_size_megabytes=int(card.storage_size.in_mb),\n            supports_tensor=card.supports_tensor,\n            tasks=[task.value for task in card.tasks],\n            is_custom=True,\n        )\n\n    async def delete_custom_model(self, model_id: ModelId) -> JSONResponse:\n        \"\"\"Delete a user-added custom model card and sync deletion across the cluster.\"\"\"\n        card = model_cards.card_cache.get(model_id)\n        if card is None or not card.is_custom:\n            raise HTTPException(status_code=404, detail=\"Custom model card not found\")\n\n        await self.command_sender.send(\n            ForwarderCommand(\n                origin=self._system_id,\n                command=DeleteCustomModelCard(model_id=model_id),\n            )\n        )\n\n        return JSONResponse(\n            {\"message\": \"Model card deleted\", \"model_id\": str(model_id)}\n        )\n\n    async def search_models(\n        self, query: str = \"\", limit: int = 20\n    ) -> list[HuggingFaceSearchResult]:\n        \"\"\"Search HuggingFace Hub — tries mlx-community first, falls back to all of HuggingFace.\"\"\"\n        from huggingface_hub import ModelInfo, list_models\n","sourceCodeStart":1839,"sourceCodeEnd":1875,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L1839-L1875","documentation":"Error \"Custom model card not found\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:1857 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"}