
    g                     .    d dl Z d dlmZ  G d de      Zy)    N)BaseLLMExceptionc                        e Zd Z fdZ xZS )InfinityErrorc                     || _         || _        t        j                  dd      | _        t        j
                  || j                        | _        t        | !  ||| j                  | j                         y )NPOSTz'https://github.com/michaelfeil/infinity)methodurl)status_coderequest)r
   messager   response)	r
   r   httpxRequestr   Responser   super__init__)selfr
   r   	__class__s      ^/var/www/openai/venv/lib/python3.12/site-packages/litellm/llms/infinity/rerank/common_utils.pyr   zInfinityError.__init__   sf    &}}H
 ;U#LL]]	 	 	
    )__name__
__module____qualname__r   __classcell__)r   s   @r   r   r      s    
 
r   r   )r   )litellm.llms.base_llm.chat.transformationr   r    r   r   <module>r      s     F
$ 
r   