
    ^h*                         S SK JrJr  S SKJrJr  S SKJr   " S S\5      rS r	\ V s0 s H,  n \	" U 5      \U R                  =(       d    U R                  S._M.     sn rS\;  a	  \S	S.\S'   g
g
s  sn f )    )AnyDict)	BaseModelField)LITELLM_EXCEPTION_TYPESc            	       F    \ rS rSr% \" SSSSSSS.0S	9r\\\4   \	S
'   Sr
g)ErrorResponse   .errorzError message
error_typeerror_param
error_code)messagetypeparamcode)exampledetail N)__name__
__module____qualname____firstlineno__r   r   r   strr   __annotations____static_attributes__r       b/home/james-whalen/.local/lib/python3.13/site-packages/litellm/proxy/common_utils/swagger_utils.pyr	   r	      s7    "*$&$	

FDcN 
r   r	   c                     [        U S5      (       a  U R                  $ U R                  S:X  a  gU R                  S:X  a  gg)Nstatus_codeTimeouti  APIConnectionErrori    )hasattrr    r   	exceptions    r   get_status_coder'      sA    y-(($$$Y&11r   )modeldescriptionr#   zInternal Server ErrorN)typingr   r   pydanticr   r   litellm.exceptionsr   r	   r'   __doc__r   ERROR_RESPONSESr%   s   0r   <module>r/      s     % 6I " -
 -		 I ((>I,>,>!  - o.OC s   3A/