
    ̺ir0                    \   S SK Jr  S SKJr  S SKrSSKJr  SSKJr  SSK	J
r
JrJrJrJrJrJr  SSK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  SSKJrJr  SSK J!r!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)    )annotations)ListN   )_legacy_response)model_list_params)BodyOmitQueryHeadersNotGivenomit	not_given)is_givenmaybe_transformstrip_not_given)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPage	AsyncPage)AsyncPaginatormake_request_options)	ModelInfo)AnthropicBetaParam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	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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)ModelsWithRawResponseselfs    Y/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/anthropic/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/anthropics/anthropic-sdk-python#with_streaming_response
)ModelsWithStreamingResponser$   s    r&   with_streaming_responseModels.with_streaming_response#   s     +400r)   Nbetasextra_headersextra_query
extra_bodytimeoutc          
         U(       d  [        SU< 35      e0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R                  SU 3[        X4XVS9[        S9$ )   
Get a specific model.

The Models API response can be used to determine information about a specific
model or resolve a model alias to a model ID.

Args:
  model_id: Model identifier or alias.

  betas: Optional header to specify the beta version(s) you want to use.

  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
7Expected a non-empty value for `model_id` but received anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r&   	<genexpr>"Models.retrieve.<locals>.<genexpr>N        9P%Q#a&&%   /v1/models/r1   r2   r3   r4   optionscast_to
ValueErrorr   r   joinr   _getr   r   r%   model_idr0   r1   r2   r3   r4   s          r&   retrieveModels.retrieve,   s    > VW_Vbcdd
/T\]bTcTc9P%9P1Pirst
"
 yy($(+Q[   
 	
r)   after_id	before_idlimitr0   r1   r2   r3   r4   c                  0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R	                  S[
        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )s  
List available models.

The Models API response can be used to determine which models are available for
use in the API. More recently released models are listed first.

Args:
  after_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately after this object.

  before_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately before this object.

  limit: Number of items to return per page.

      Defaults to `20`. Ranges from `1` to `1000`.

  betas: Optional header to specify the beta version(s) you want to use.

  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
r8   r9   c              3  8   #    U  H  n[        U5      v   M     g 7fr;   r<   r>   s     r&   rA   Models.list.<locals>.<genexpr>   rC   rD   
/v1/modelsrS   rT   rU   r1   r2   r3   r4   querypagerH   model)r   r   rL   r   _get_api_listr   r   r   r   r   ModelListParams	r%   rS   rT   rU   r0   r1   r2   r3   r4   s	            r&   listModels.listY   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!)$(+'%%$,%.!&
 &55 # " 
 	
r)    )returnr#   )rg   r,   rO   r=   r0   List[AnthropicBetaParam] | Omitr1   Headers | Noner2   Query | Noner3   Body | Noner4   'float | httpx.Timeout | None | NotGivenrg   r   )rS   
str | OmitrT   rn   rU   
int | Omitr0   ri   r1   rj   r2   rk   r3   rl   r4   rm   rg   zSyncPage[ModelInfo]__name__
__module____qualname____firstlineno__r   r'   r-   r   r   rP   rd   __static_attributes__rf   r)   r&   r   r      s   + + 1 1 26 )-$("&;D+
+
 /	+
 &+
 "+
  +
 9+
 
+
`  $ $ 15 )-$("&;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	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0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R                  SU 3[        X4XVS9[        S9I Sh  vN $  N7f)	r6   r7   r8   r9   c              3  8   #    U  H  n[        U5      v   M     g 7fr;   r<   r>   s     r&   rA   'AsyncModels.retrieve.<locals>.<genexpr>   rC   rD   rE   rF   rG   NrJ   rN   s          r&   rP   AsyncModels.retrieve   s     > VW_Vbcdd
/T\]bTcTc9P%9P1Pirst
"
 YY($(+Q[   
 
 	
 
s   B B	BB	rR   c                  0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R	                  S[
        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )rW   r8   r9   c              3  8   #    U  H  n[        U5      v   M     g 7fr;   r<   r>   s     r&   rA   #AsyncModels.list.<locals>.<genexpr>  rC   rD   rZ   r[   r\   r^   )r   r   rL   r   ra   r   r   r   r   r   rb   rc   s	            r&   rd   AsyncModels.list   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!9%(+'%%$,%.!&
 &55 # " 
 	
r)   rf   )rg   ry   )rg   r|   rh   )rS   rn   rT   rn   rU   ro   r0   ri   r1   rj   r2   rk   r3   rl   r4   rm   rg   z/AsyncPaginator[ModelInfo, AsyncPage[ModelInfo]]rp   rf   r)   r&   r   r      s   0 0 6 6 26 )-$("&;D+
+
 /	+
 &+
 "+
  +
 9+
 
+
`  $ $ 15 )-$("&;D?
 ?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
9?
 ?
r)   c                      \ rS rSrSS jrSrg)r#   i  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g r;   )_modelsr   to_raw_response_wrapperrP   rd   r%   modelss     r&   __init__ModelsWithRawResponse.__init__  s;    (@@OO
 %<<KK
	r)   r   rd   rP   Nr   r   rg   Nonerq   rr   rs   rt   r   ru   rf   r)   r&   r#   r#         
r)   r#   c                      \ rS rSrSS jrSrg)ry   i*  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g r;   )r   r   async_to_raw_response_wrapperrP   rd   r   s     r&   r   #AsyncModelsWithRawResponse.__init__+  s;    (FFOO
 %BBKK
	r)   r   Nr   r   rg   r   r   rf   r)   r&   ry   ry   *  r   r)   ry   c                      \ rS rSrSS jrSrg)r,   i6  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g r;   )r   r   rP   rd   r   s     r&   r   $ModelsWithStreamingResponse.__init__7  s/    4OO
 1KK
	r)   r   Nr   r   rf   r)   r&   r,   r,   6  r   r)   r,   c                      \ rS rSrSS jrSrg)r|   iB  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g r;   )r   r   rP   rd   r   s     r&   r   )AsyncModelsWithStreamingResponse.__init__C  s/    :OO
 7KK
	r)   r   Nr   r   rf   r)   r&   r|   r|   B  r   r)   r|   ).
__future__r   typingr   httpx r   typesr   _typesr   r	   r
   r   r   r   r   _utilsr   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.model_infor   types.anthropic_beta_paramr   __all__r   r   r#   ry   r,   r|   rf   r)   r&   <module>r      s    #    % J J J ? ? % 9 X , ? ( ;]
#@
_ @
F@
" @
F	
 	
	
 	
	
 	
	
 	
r)   