
    {h                    
   d dl mZ d dlmZmZ d dlZd dlZeej                  j                  f	 	 	 	 	 	 	 dd       Z	eej                  j                  f	 	 	 	 	 	 	 dd       Z	ej                  j                  f	 	 	 	 	 	 	 d	dZ	y)
    )annotations)overloadAnyNc                     y N clientmodekwargss      W/var/www/html/hubwallet-dev/venv/lib/python3.12/site-packages/instructor/client_groq.py	from_groqr   	   s    
      c                     y r   r   r	   s      r   r   r      s    
 "%r   c           
     B   t         j                  j                  t         j                  j                  h}||vr1ddlm}  |t        |      d|D cg c]  }t        |       c}      t        | t        j                  t        j                  f      s$ddlm}  |dt        |       j                         t        | t        j                        ret        j                  d	| t        j                  | j                   j"                  j$                  |      t         j&                  j(                  |d|S t        j*                  d	| t        j                  | j                   j"                  j$                  |      t         j&                  j(                  |d|S c c}w )
Nr   )	ModeErrorGroq)r   providervalid_modes)ClientErrorz@Client must be an instance of groq.Groq or groq.AsyncGroq. Got: )creater   )r
   r   r   r   r   )
instructorModeJSONTOOLSinstructor.exceptionsr   str
isinstancegroqr   	AsyncGroqr   type__name__
Instructorpatchchatcompletionsr   ProviderGROQAsyncInstructor)r
   r   r   r   r   mr   s          r   r   r      sd    	K
 ;3TV+9VQ#a&9V
 	
 ftyy$..9:5L))*,
 	

 &$))$$$ 
##6;;+B+B+I+IPTU((--	

 
 	
 )) 
##6;;+B+B+I+IPTU((--	

 
 	
+ :Ws   F)r
   z	groq.Groqr   instructor.Moder   r   returnzinstructor.Instructor)r
   zgroq.AsyncGroqr   r+   r   r   r,   zinstructor.AsyncInstructor)r
   zgroq.Groq | groq.AsyncGroqr   r+   r   r   r,   z2instructor.Instructor | instructor.AsyncInstructor)

__future__r   typingr   r   r   r   r   r   r   r   r   r   <module>r/      s    "     
 'OO11  
    	  
  
 'OO11%%
% %  	% 
% 'OO11)
&)

)
 )
 8	)
r   