{"record":{"id":"38fe59ff154b68b5","repo":"BerriAI/litellm","slug":"model-name-requested-model-matches-deployments","errorCode":null,"errorMessage":"Model name '{requested_model}' matches deployments from multiple teams. Specify the deployment ID directly to disambiguate.","messagePattern":"Model name '(.+?)' matches deployments from multiple teams\\. Specify the deployment ID directly to disambiguate\\.","errorType":"http","errorClass":"BadRequestError","httpStatus":400,"severity":"error","filePath":"litellm/router_utils/common_utils.py","lineNumber":137,"sourceCode":"            (deployment.get(\"model_name\"), deployment.get(\"model_info\") or {}) for deployment in healthy_deployments\n        )\n        team_ids: Final = frozenset(\n            team_id\n            for _, model_info in candidate_deployments\n            for team_id in [model_info.get(\"team_id\")]\n            if team_id is not None\n        )\n        matches_requested_model: Final = (\n            isinstance(requested_model, str)\n            and bool(candidate_deployments)\n            and all(\n                model_info.get(\"team_id\") is not None\n                and (model_name == requested_model or model_info.get(\"team_public_model_name\") == requested_model)\n                for model_name, model_info in candidate_deployments\n            )\n        )\n        if matches_requested_model and len(team_ids) > 1:\n            raise BadRequestError(\n                message=(\n                    f\"Model name '{requested_model}' matches deployments from multiple teams. \"\n                    \"Specify the deployment ID directly to disambiguate.\"\n                ),\n                model=requested_model,\n                llm_provider=\"\",\n            )\n        if matches_requested_model:\n            return healthy_deployments\n\n    ids_to_remove: Final = set()\n    if isinstance(healthy_deployments, dict):\n        return healthy_deployments\n    for deployment in healthy_deployments:\n        _model_info = deployment.get(\"model_info\") or {}\n        model_team_id = _model_info.get(\"team_id\")\n        if model_team_id is None:\n            continue","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/router_utils/common_utils.py#L119-L155","documentation":"Raised when a requested model name matches deployments belonging to multiple different teams, making team-scoped routing ambiguous; the caller must pass the specific deployment ID instead of the model name.","triggerScenarios":"Thrown at litellm/router_utils/common_utils.py:137 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Specify the deployment ID directly instead of the ambiguous model name."],"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-14T00:17:10.932Z"}