
    g*                         d dl mZmZ d dlmZmZ d dlmZ  G d de      Zd Z	eD  ci c]&  }  e	|       e| j                  xs | j                  d( c} Zdevr	ed	ded<   y
y
c c} w )    )AnyDict)	BaseModelField)LITELLM_EXCEPTION_TYPESc            	       D    e Zd ZU  edddddddi      Zeeef   ed	<   y
)ErrorResponse.errorzError message
error_typeerror_param
error_code)messagetypeparamcode)exampledetailN)	__name__
__module____qualname__r   r   r   strr   __annotations__     ]/var/www/openai/venv/lib/python3.12/site-packages/litellm/proxy/common_utils/swagger_utils.pyr	   r	      s7    "*$&$	

FDcN 
r   r	   c                 t    t        | d      r| j                  S | j                  dk(  ry| j                  dk(  ryy)Nstatus_codeTimeouti  APIConnectionErrori    )hasattrr   r   	exceptions    r   get_status_coder$      s>    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   +A%