{"record":{"id":"bbf7aa9b8efc82b8","repo":"BerriAI/litellm","slug":"batch-input-file-model-access-could-not-be-validat","errorCode":null,"errorMessage":"Batch input file model access could not be validated against the current team.","messagePattern":"Batch input file model access could not be validated against the current team\\.","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/hooks/batch_rate_limiter.py","lineNumber":648,"sourceCode":"\n        team_object = None\n        if (\n            SpecialModelNames.all_team_models.value in (user_api_key_dict.models or [])\n            and user_api_key_dict.team_id is not None\n            and prisma_client is not None\n        ):\n            try:\n                team_object = await get_team_object(\n                    team_id=user_api_key_dict.team_id,\n                    prisma_client=prisma_client,\n                    user_api_key_cache=user_api_key_cache,\n                    parent_otel_span=user_api_key_dict.parent_otel_span,\n                    proxy_logging_obj=proxy_logging_obj,\n                )\n            except HTTPException:\n                raise\n            except Exception as e:\n                raise HTTPException(\n                    status_code=403,\n                    detail={\n                        \"error\": (\"Batch input file model access could not be validated against the current team.\")\n                    },\n                ) from e\n\n        llm_model_list: Final = llm_router.model_list if llm_router is not None else None\n        for model in models:\n            model_to_check = model\n            try:\n                if team_object is not None:\n                    try:\n                        await can_team_access_model(\n                            model=model_to_check,\n                            team_object=team_object,\n                            llm_router=llm_router,\n                            team_model_aliases=user_api_key_dict.team_model_aliases,\n                        )","sourceCodeStart":630,"sourceCodeEnd":666,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/hooks/batch_rate_limiter.py#L630-L666","documentation":"Error \"Batch input file model access could not be validated against the current team.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/hooks/batch_rate_limiter.py:648 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the batch input file was created under the same team as the requesting key.","Upload the file with the correct team context and retry."],"exampleFix":null,"handlingStrategy":null,"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"}