mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(proxy_server.py): fix error string
This commit is contained in:
parent
b80ec2a08b
commit
c6b4ad247b
1 changed files with 2 additions and 2 deletions
|
@ -1113,7 +1113,7 @@ async def user_api_key_auth(
|
||||||
|
|
||||||
if global_proxy_spend is not None:
|
if global_proxy_spend is not None:
|
||||||
call_info = CallInfo(
|
call_info = CallInfo(
|
||||||
token=valid_token["token"],
|
token=valid_token.token,
|
||||||
spend=global_proxy_spend,
|
spend=global_proxy_spend,
|
||||||
max_budget=litellm.max_budget,
|
max_budget=litellm.max_budget,
|
||||||
user_id=litellm_proxy_admin_name,
|
user_id=litellm_proxy_admin_name,
|
||||||
|
@ -1310,7 +1310,7 @@ async def user_api_key_auth(
|
||||||
elif isinstance(e, ProxyException):
|
elif isinstance(e, ProxyException):
|
||||||
raise e
|
raise e
|
||||||
raise ProxyException(
|
raise ProxyException(
|
||||||
message="Authentication Error 1234, " + str(e),
|
message="Authentication Error, " + str(e),
|
||||||
type="auth_error",
|
type="auth_error",
|
||||||
param=getattr(e, "param", "None"),
|
param=getattr(e, "param", "None"),
|
||||||
code=status.HTTP_401_UNAUTHORIZED,
|
code=status.HTTP_401_UNAUTHORIZED,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue