{"record":{"id":"108f1d6835951b28","repo":"BerriAI/litellm","slug":"model-model-id-not-found-in-model-list-please","errorCode":null,"errorMessage":"Model '{model_id}' not found in model_list. Please check your config.yaml.","messagePattern":"Model '(.+?)' not found in model_list\\. Please check your config\\.yaml\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/openai_files_endpoints/common_utils.py","lineNumber":318,"sourceCode":"\n    Returns:\n        Dictionary with credentials (api_key, api_base, custom_llm_provider, etc.)\n\n    Raises:\n        HTTPException: If router not initialized or model not found\n    \"\"\"\n    from fastapi import HTTPException\n\n    if llm_router is None:\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": \"Router not initialized. Cannot use model-based routing.\"},\n        )\n\n    credentials: Final = llm_router.get_deployment_credentials_with_provider(model_id=model_id)\n\n    if credentials is None:\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": f\"Model '{model_id}' not found in model_list. Please check your config.yaml.\"},\n        )\n\n    return credentials\n\n\ndef get_team_provider_credentials(\n    llm_router: Optional[\"Router\"],\n    user_api_key_dict: \"UserAPIKeyAuth\",\n    custom_llm_provider: str,\n) -> dict | None:\n    \"\"\"\n    Resolve upstream credentials for a provider-scoped file operation\n    (e.g. GET /v1/files), which doesn't pin a model.\n\n    Priority:\n    1. The team's own (BYOK) deployment for this provider — a deployment whose","sourceCodeStart":300,"sourceCodeEnd":336,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/openai_files_endpoints/common_utils.py#L300-L336","documentation":"HTTPException(400) from the model-credential resolver: the router is initialized but get_deployment_credentials_with_provider returned no deployment for the requested model_id — the model is absent from config.yaml's model_list (or the id was mistyped), so no upstream credentials exist to use.","triggerScenarios":"Thrown at litellm/proxy/openai_files_endpoints/common_utils.py:318 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the model to model_list in config.yaml, or use an existing model alias."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}