exo-explore/exo · error · HTTPException
Failed to fetch model: {exc}
Error message
Failed to fetch model: {exc} What it means
Error "Failed to fetch model: {exc}" thrown in exo-explore/exo.
Source
Thrown at src/exo/api/main.py:1826
tasks=[task.value for task in card.tasks],
is_custom=card.is_custom,
family=card.family,
quantization=card.quantization,
base_model=card.base_model,
capabilities=card.capabilities,
reasoning_dialect=card.reasoning_dialect,
context_length=card.context_length,
)
for card in cards
]
)
async def add_custom_model(self, payload: AddCustomModelParams) -> ModelListModel:
"""Fetch a model from HuggingFace and save as a custom model card, then sync across the cluster."""
try:
card = await ModelCard.fetch_from_hf(payload.model_id)
except Exception as exc:
raise HTTPException(
status_code=400, detail=f"Failed to fetch model: {exc}"
) from exc
await self.command_sender.send(
ForwarderCommand(
origin=self._system_id,
command=AddCustomModelCard(model_card=card),
)
)
# Immediately update the local cache so the subsequent GET /models
# returns the new model without waiting for the event round-trip.
model_cards.card_cache.cc[card.model_id] = card
return ModelListModel(
id=card.model_id,
hugging_face_id=card.model_id,
name=card.model_id.short(),View on GitHub (pinned to 21a54c5ea0)
When it happens
Trigger: Thrown at src/exo/api/main.py:1826 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of exo-explore/exo@21a54c5ea0 (2026-08-26).
Data as JSON: /api/errors/eee061e7d4ae46b4.
Report an issue: GitHub.