mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(proxy): format key tag handling
This commit is contained in:
parent
f752e2aa96
commit
60cf5d12ee
1 changed files with 1 additions and 3 deletions
|
|
@ -1669,9 +1669,7 @@ async def _common_key_generation_helper(
|
|||
|
||||
tags = data_json.get("tags")
|
||||
if premium_user is not True and isinstance(tags, list) and len(tags) > 0:
|
||||
raise ValueError(
|
||||
f"Only premium users can add tags to keys. {CommonProxyErrors.not_premium_user.value}"
|
||||
)
|
||||
raise ValueError(f"Only premium users can add tags to keys. {CommonProxyErrors.not_premium_user.value}")
|
||||
|
||||
_metadata: Final = data_json.get("metadata")
|
||||
if tags is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue