{"record":{"id":"b57fe4fa8ec05a64","repo":"BerriAI/litellm","slug":"this-feature-is-only-available-for-litellm-enterpr","errorCode":null,"errorMessage":"This feature is only available for LiteLLM Enterprise users: {feature}. 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":"This feature is only available for LiteLLM Enterprise users: (.+?)\\. 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/utils.py","lineNumber":6628,"sourceCode":"        code=_status_code,\n    )\n\n\ndef _premium_user_check(feature: str | None = None):\n    \"\"\"\n    Raises an HTTPException if the user is not a premium user\n    \"\"\"\n    from litellm.proxy.proxy_server import premium_user\n\n    if feature:\n        detail_msg = f\"This feature is only available for LiteLLM Enterprise users: {feature}. {CommonProxyErrors.not_premium_user.value}\"\n    else:\n        detail_msg = (\n            f\"This feature is only available for LiteLLM Enterprise users. {CommonProxyErrors.not_premium_user.value}\"\n        )\n\n    if not premium_user:\n        raise HTTPException(\n            status_code=403,\n            detail={\"error\": detail_msg},\n        )\n\n\ndef is_known_model(model: str | None, llm_router: Router | None) -> bool:\n    \"\"\"\n    Returns True if the model is in the llm_router model names\n    \"\"\"\n    if model is None or llm_router is None:\n        return False\n    model_names: Final = llm_router.get_model_names()\n\n    model_names_set: Final = set(model_names)\n\n    is_in_list = False\n    if model in model_names_set:\n        is_in_list = True","sourceCodeStart":6610,"sourceCodeEnd":6646,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/utils.py#L6610-L6646","documentation":"Error \"This feature is only available for LiteLLM Enterprise users: {feature}. 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/utils.py:6628 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set LITELLM_LICENSE to a valid LiteLLM Enterprise license key in your environment, or avoid the enterprise-only feature."],"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"}