mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Add ProxyAuthenticationException for proxy unauth 401s
This commit is contained in:
parent
1017c3a0e4
commit
9a4cfc404b
2 changed files with 7 additions and 0 deletions
|
|
@ -3000,6 +3000,12 @@ class ProxyException(Exception):
|
|||
error_dict["provider_specific_fields"] = self.provider_specific_fields
|
||||
return error_dict
|
||||
|
||||
class ProxyAuthenticationException(ProxyException):
|
||||
"""
|
||||
Expected auth error (401) for invalid or missing proxy token.
|
||||
Logged as unauthenticated, not as an internal crash.
|
||||
"""
|
||||
pass
|
||||
|
||||
class CommonProxyErrors(str, enum.Enum):
|
||||
db_not_connected_error = (
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ from litellm.proxy._types import (
|
|||
LitellmUserRoles,
|
||||
NewTeamRequest,
|
||||
ProxyErrorTypes,
|
||||
ProxyAuthenticationException,
|
||||
ProxyException,
|
||||
RoleBasedPermissions,
|
||||
SpecialModelNames,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue