return correct response from user/new

This commit is contained in:
Ishaan Jaff 2024-04-16 08:17:45 -07:00
parent 11e2c06c34
commit 2ad2d6cf9f
2 changed files with 35 additions and 1 deletions

View file

@ -5675,8 +5675,13 @@ async def new_user(data: NewUserRequest):
return NewUserResponse(
key=response.get("token", ""),
expires=response.get("expires", None),
user_id=response["user_id"],
max_budget=response["max_budget"],
user_id=response["user_id"],
team_id=response.get("team_id", None),
metadata=response.get("metadata", None),
models=response.get("models", None),
tpm_limit=response.get("tpm_limit", None),
rpm_limit=response.get("rpm_limit", None),
)