{"record":{"id":"16ccaa16ca9e8e6a","repo":"BerriAI/litellm","slug":"you-must-be-a-litellm-enterprise-user-to-use-this-16ccaa","errorCode":null,"errorMessage":"You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/enterprise#trial. \\nPricing: https://www.litellm.ai/#pricing","messagePattern":"You must be a LiteLLM Enterprise user to use this feature\\. If you have a license please set `LITELLM_LICENSE` in your env\\. Get a 7 day trial key here: https://www\\.litellm\\.ai/enterprise#trial\\. \\\\nPricing: https://www\\.litellm\\.ai/#pricing","errorType":"http","errorClass":"HTTPException","httpStatus":403,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_management_endpoints.py","lineNumber":1467,"sourceCode":"            raise HTTPException(\n                status_code=403,\n                detail={\n                    \"error\": f\"Team ID={team_id} does not match the API key's team ID={user_api_key_dict.team_id}, OR you are not the admin for this team. Check `/user/info` to verify your team admin status.\"\n                },\n            )\n        return True\n\n    @staticmethod\n    async def allow_team_model_action(\n        model_params: Deployment | updateDeployment,\n        user_api_key_dict: UserAPIKeyAuth,\n        prisma_client: PrismaClient,\n        premium_user: bool,\n    ) -> Literal[True]:\n        if model_params.model_info is None or model_params.model_info.team_id is None:\n            return True\n        if model_params.model_info.team_id is not None and premium_user is not True:\n            raise HTTPException(\n                status_code=403,\n                detail={\"error\": CommonProxyErrors.not_premium_user.value},\n            )\n\n        _existing_team_row: Final = await _repo_team_table(prisma_client).find_unique(\n            where={\"team_id\": model_params.model_info.team_id}\n        )\n\n        if _existing_team_row is None:\n            raise HTTPException(\n                status_code=400,\n                detail={\"error\": f\"Team id={model_params.model_info.team_id} does not exist in db\"},\n            )\n        existing_team_row: Final = LiteLLM_TeamTable.model_validate(_existing_team_row.model_dump())\n\n        ModelManagementAuthChecks.can_user_make_team_model_call(\n            team_id=model_params.model_info.team_id,\n            user_api_key_dict=user_api_key_dict,","sourceCodeStart":1449,"sourceCodeEnd":1485,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_management_endpoints.py#L1449-L1485","documentation":"Error \"You must be a LiteLLM Enterprise user to use this feature. If you have a license please set `LITELLM_LICENSE` in your env. Get a 7 day trial key here: https://www.litellm.ai/enterprise#trial. \\nPricing: https://www.litellm.ai/#pricing\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_management_endpoints.py:1467 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE in the environment with a valid enterprise license key."],"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"}