{"record":{"id":"0f360101e94bd6eb","repo":"exo-explore/exo","slug":"no-configuration-found-for-model-model-id","errorCode":null,"errorMessage":"No configuration found for model: {model_id}","messagePattern":"No configuration found for model: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"src/exo/worker/engines/image/models/__init__.py","lineNumber":66,"sourceCode":"def get_config_for_model(model_id: str) -> ImageModelConfig:\n    \"\"\"Get configuration for a model ID.\n\n    Args:\n        model_id: The model identifier (e.g., \"black-forest-labs/FLUX.1-schnell\")\n\n    Returns:\n        The model configuration\n\n    Raises:\n        ValueError: If no configuration found for model ID\n    \"\"\"\n    model_id_lower = model_id.lower()\n\n    for pattern, config in _CONFIG_REGISTRY.items():\n        if pattern in model_id_lower:\n            return config\n\n    raise ValueError(f\"No configuration found for model: {model_id}\")\n\n\ndef create_adapter_for_model(\n    config: ImageModelConfig,\n    model_id: str,\n    local_path: Path,\n    quantize: int | None = None,\n) -> ModelAdapter[Any, Any]:\n    \"\"\"Create a model adapter for the given configuration.\n\n    Args:\n        config: The model configuration\n        model_id: The model identifier\n        local_path: Path to the model weights\n        quantize: Optional quantization bits\n\n    Returns:\n        A ModelAdapter instance","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/worker/engines/image/models/__init__.py#L48-L84","documentation":"Error \"No configuration found for model: {model_id}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/worker/engines/image/models/__init__.py:66 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"}