
    h                         d Z ddlmZmZ ddlZddlmZ  G d de      Z G d de      Z G d	 d
e      Z	 G d de      Z
 G d de      Z G d de      Zy)z#
Constants for Copilot integration
    )OptionalUnionN)BaseLLMExceptionc            
            e Zd Z	 	 	 	 ddeej
                     deej                     deeej                  e	f      dee	   f fdZ
 xZS )GithubCopilotErrorrequestresponseheadersbodyc                 0    t         |   ||||||       y )N)status_codemessager   r	   r
   r   )super__init__)selfr   r   r   r	   r
   r   	__class__s          d/var/www/Befach/backend/env/lib/python3.12/site-packages/litellm/llms/github_copilot/common_utils.pyr   zGithubCopilotError.__init__   s)     	# 	 	
    )NNNN)__name__
__module____qualname__r   httpxRequestResponser   Headersdictr   __classcell__)r   s   @r   r   r      sl    
 ,0-18<#
 %--(	

 5>>*
 %t 345
 tn
 
r   r   c                       e Zd Zy)GetDeviceCodeErrorNr   r   r    r   r   r   r           r   r   c                       e Zd Zy)GetAccessTokenErrorNr    r!   r   r   r$   r$   $   r"   r   r$   c                       e Zd Zy)APIKeyExpiredErrorNr    r!   r   r   r&   r&   (   r"   r   r&   c                       e Zd Zy)RefreshAPIKeyErrorNr    r!   r   r   r(   r(   ,   r"   r   r(   c                       e Zd Zy)GetAPIKeyErrorNr    r!   r   r   r*   r*   0   r"   r   r*   )__doc__typingr   r   r   )litellm.llms.base_llm.chat.transformationr   r   r   r$   r&   r(   r*   r!   r   r   <module>r.      sc    #  F
) 
*	+ 		, 		+ 		+ 		' 	r   