
    Mi)                       S SK Jr  S SKrSSKJrJrJrJrJr  SSK	J
r
  SSKJrJr  SSKJrJrJrJr  SSKJr  SS	KJr  SS
KJr  SSKJr  SS/r " S S\5      r " S S\5      r " S S5      r " S S5      r " S S5      r  " S S5      r!g)    )annotationsN   )BodyQueryHeadersNotGiven	not_given)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)Model)make_request_options)ModelDeleted)ModelListResponseModelsAsyncModelsc                      \ rS rSr\S
S j5       r\SS j5       rSSS\S.           SS jjrSSS\S.         SS jjr	SSS\S.           SS jjr
S	rg)r      c                    [        U 5      $ z
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/groq/groq-python#accessing-raw-response-data-eg-headers
)ModelsWithRawResponseselfs    o/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/groq/resources/models.pywith_raw_responseModels.with_raw_response   s     %T**    c                    [        U 5      $ z
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/groq/groq-python#with_streaming_response
)ModelsWithStreamingResponser   s    r   with_streaming_responseModels.with_streaming_response#   s     +400r!   Nextra_headersextra_query
extra_bodytimeoutc          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9$ )  
Get a specific model

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
4Expected a non-empty value for `model` but received /openai/v1/models/r'   optionscast_to
ValueError_getr   r   r   modelr(   r)   r*   r+   s         r   retrieveModels.retrieve,   sO    . STYS\]^^yy ((+Q[   
 	
r!   c          
     <    U R                  S[        XX4S9[        S9$ )get all available models/openai/v1/modelsr'   r0   r5   r   r   r   r(   r)   r*   r+   s        r   listModels.listM   s0     yy(+Q[ &  
 	
r!   c          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9$ )
  
Delete a model

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
r.   r/   r'   r0   r4   _deleter   r   r6   s         r   deleteModels.delete`   sO    . STYS\]^^|| ((+Q[ !  
 	
r!    )returnr   )rH   r$   r7   strr(   Headers | Noner)   Query | Noner*   Body | Noner+   'float | httpx.Timeout | None | NotGivenrH   r   
r(   rK   r)   rL   r*   rM   r+   rN   rH   r   r7   rJ   r(   rK   r)   rL   r*   rM   r+   rN   rH   r   __name__
__module____qualname____firstlineno__r
   r   r%   r	   r8   r?   rE   __static_attributes__rG   r!   r   r   r      s   + + 1 1 )-$("&;D

 &
 "
  
 9
 

L )-$("&;D

 &
 "
  
 9
 

2 )-$("&;D

 &
 "
  
 9
 

 
r!   c                      \ rS rSr\S
S j5       r\SS j5       rSSS\S.           SS jjrSSS\S.         SS jjr	SSS\S.           SS jjr
S	rg)r      c                    [        U 5      $ r   )AsyncModelsWithRawResponser   s    r   r   AsyncModels.with_raw_response   s     *$//r!   c                    [        U 5      $ r#   ) AsyncModelsWithStreamingResponser   s    r   r%   #AsyncModels.with_streaming_response   s     055r!   Nr'   c          
        #    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)r-   r.   r/   r'   r0   Nr3   r6   s         r   r8   AsyncModels.retrieve   s\     . STYS\]^^YY ((+Q[   
 
 	
 
   :AAAc          
     X   #    U R                  S[        XX4S9[        S9I Sh  vN $  N7f)r;   r<   r'   r0   Nr=   r>   s        r   r?   AsyncModels.list   s=      YY(+Q[ &  
 
 	
 
s   !*(*c          
        #    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)rB   r.   r/   r'   r0   NrC   r6   s         r   rE   AsyncModels.delete   s\     . STYS\]^^\\ ((+Q[ ! " 
 
 	
 
ra   rG   )rH   rZ   )rH   r]   rI   rO   rP   rQ   rG   r!   r   r   r      s   0 0 6 6 )-$("&;D

 &
 "
  
 9
 

L )-$("&;D

 &
 "
  
 9
 

2 )-$("&;D

 &
 "
  
 9
 

 
r!   c                      \ rS rSrSS jrSrg)r      c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g N)_modelsr   r8   r?   rE   r   modelss     r   __init__ModelsWithRawResponse.__init__   sD    /OO
 ,KK
	 .MM
r!   rj   rE   r?   r8   Nrl   r   rH   NonerR   rS   rT   rU   rm   rV   rG   r!   r   r   r          
r!   r   c                      \ rS rSrSS jrSrg)rZ      c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ri   )rj   r   r8   r?   rE   rk   s     r   rm   #AsyncModelsWithRawResponse.__init__   sD    5OO
 2KK
	 4MM
r!   ro   Nrl   r   rH   rq   rr   rG   r!   r   rZ   rZ      rs   r!   rZ   c                      \ rS rSrSS jrSrg)r$   i
  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ri   )rj   r   r8   r?   rE   rk   s     r   rm   $ModelsWithStreamingResponse.__init__  sD    4OO
 1KK
	 3MM
r!   ro   Nrp   rr   rG   r!   r   r$   r$   
  rs   r!   r$   c                      \ rS rSrSS jrSrg)r]   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ri   )rj   r   r8   r?   rE   rk   s     r   rm   )AsyncModelsWithStreamingResponse.__init__  sD    :OO
 7KK
	 9MM
r!   ro   Nrx   rr   rG   r!   r   r]   r]     rs   r!   r]   )"
__future__r   httpx_typesr   r   r   r   r	   _compatr
   	_resourcer   r   	_responser   r   r   r   types.modelr   _base_clientr   types.model_deletedr   types.model_list_responser   __all__r   r   r   rZ   r$   r]   rG   r!   r   <module>r      s    #  > > % 9    / . 9]
#g
_ g
Tg
" g
T
 

 

 

 
r!   