Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(internal_user_endpoints.py): fix check

Krrish Dholakia2ced944bbe44
diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py
index c0d0186c67d..bbdd8c81335 100644
--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py
+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py
@@ -239,7 +239,7 @@ async def new_user(
else:
raise e
- special_keys = ["token"]
+ special_keys = ["token", "token_id"]
response_dict = {}
for key, value in response.items():
if key in NewUserResponse.model_fields.keys() and key not in special_keys: