{"record":{"id":"8f63e1f9d27d2408","repo":"BerriAI/litellm","slug":"tag-budgets-are-an-enterprise-only-feature-commo","errorCode":null,"errorMessage":"Tag budgets are an Enterprise only feature, {CommonProxyErrors.not_premium_user}","messagePattern":"Tag budgets are an Enterprise only feature, (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/router_strategy/budget_limiter.py","lineNumber":829,"sourceCode":"        \"\"\"\n        Register or refresh deployment-level budget config for a runtime-added deployment.\n        \"\"\"\n        self._init_deployment_budgets(model_list=[deployment])\n\n    def unregister_deployment_budget(self, model_id: str) -> None:\n        if self.deployment_budget_config is None:\n            return\n        self.deployment_budget_config.pop(model_id, None)\n        if len(self.deployment_budget_config) == 0:\n            self.deployment_budget_config = None\n\n    def _init_tag_budgets(self):\n        if litellm.tag_budget_config is None:\n            return\n        from litellm.proxy.proxy_server import CommonProxyErrors, premium_user\n\n        if premium_user is not True:\n            raise ValueError(f\"Tag budgets are an Enterprise only feature, {CommonProxyErrors.not_premium_user}\")\n\n        if self.tag_budget_config is None:\n            self.tag_budget_config = {}\n\n        for _tag, _tag_budget_config in litellm.tag_budget_config.items():\n            if isinstance(_tag_budget_config, dict):\n                _tag_budget_config = BudgetConfig(**_tag_budget_config)\n            _generic_budget_config = GenericBudgetInfo(\n                time_period=_tag_budget_config.budget_duration,\n                budget_limit=_tag_budget_config.max_budget,\n            )\n            self.tag_budget_config[_tag] = _generic_budget_config\n\n        verbose_router_logger.debug(\"Initialized Tag Budget Config: %s\", self.tag_budget_config)\n","sourceCodeStart":811,"sourceCodeEnd":844,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/router_strategy/budget_limiter.py#L811-L844","documentation":"Raised in _init_tag_budgets when litellm.tag_budget_config is set but the deployment is not running with a valid enterprise license; tag budgets are a premium feature gated by CommonProxyErrors.not_premium_user.","triggerScenarios":"Thrown at litellm/router_strategy/budget_limiter.py:829 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE to a valid Enterprise license to use tag budgets."],"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"}