Skip to content

[Bug]: This feature is only available for LiteLLM Enterprise users error while trying to update a virtual key #15230

@LLukas22

Description

@LLukas22

What happened?

An This feature is only available for LiteLLM Enterprise users error occures even when no enterprice features are used when i try to edit an already created virtual key by e.g. adding a model to the key.

In earlier version of litellm i could add models to keys without any problems even without an enterpice license and according to your website it should still be possible.

I attached a video showcasing this behaviour.

Litellm.Bug.mp4

Relevant log output

2025-10-06 13:54:04 11:54:04 - LiteLLM Proxy:ERROR: key_management_endpoints.py:1233 - litellm.proxy.proxy_server.update_key_fn(): Exception occured - 403: {'error': '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'}
2025-10-06 13:54:04 Traceback (most recent call last):
2025-10-06 13:54:04   File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/key_management_endpoints.py", line 1189, in update_key_fn
2025-10-06 13:54:04     non_default_values = await prepare_key_update_data(
2025-10-06 13:54:04                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-06 13:54:04         data=data, existing_key_row=existing_key_row
2025-10-06 13:54:04         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-06 13:54:04     )
2025-10-06 13:54:04     ^
2025-10-06 13:54:04   File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/key_management_endpoints.py", line 967, in prepare_key_update_data
2025-10-06 13:54:04     _set_object_metadata_field(
2025-10-06 13:54:04     ~~~~~~~~~~~~~~~~~~~~~~~~~~^
2025-10-06 13:54:04         object_data=data,
2025-10-06 13:54:04         ^^^^^^^^^^^^^^^^^
2025-10-06 13:54:04         field_name=field,
2025-10-06 13:54:04         ^^^^^^^^^^^^^^^^^
2025-10-06 13:54:04         value=getattr(data, field),
2025-10-06 13:54:04         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-10-06 13:54:04     )
2025-10-06 13:54:04     ^
2025-10-06 13:54:04   File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/common_utils.py", line 46, in _set_object_metadata_field
2025-10-06 13:54:04     _premium_user_check()
2025-10-06 13:54:04     ~~~~~~~~~~~~~~~~~~~^^
2025-10-06 13:54:04   File "/usr/lib/python3.13/site-packages/litellm/proxy/utils.py", line 3581, in _premium_user_check
2025-10-06 13:54:04     raise HTTPException(
2025-10-06 13:54:04     ...<4 lines>...
2025-10-06 13:54:04     )
2025-10-06 13:54:04 fastapi.exceptions.HTTPException: 403: {'error': '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'}

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.77.5

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions