
    ̺i0                    \   S SK Jr  S SKJr  S SK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  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)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)model_list_params)AsyncPaginatormake_request_options)AnthropicBetaParam)BetaModelInfo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    ^/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/anthropic/resources/beta/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 S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/
?beta=true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?beta=truerT   rU   rV   r1   r2   r3   r4   querypagerI   model)r   r   rM   r   _get_api_listr   r   r   r   r   ModelListParams	r%   rT   rU   rV   r0   r1   r2   r3   r4   s	            r&   listModels.listY   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!"-((+'%%$,%.!&
 &55  # " 
 	
r)    )returnr#   )rh   r,   rP   r=   r0   List[AnthropicBetaParam] | Omitr1   Headers | Noner2   Query | Noner3   Body | Noner4   'float | httpx.Timeout | None | NotGivenrh   r   )rT   
str | OmitrU   ro   rV   
int | Omitr0   rj   r1   rk   r2   rl   r3   rm   r4   rn   rh   zSyncPage[BetaModelInfo]__name__
__module____qualname____firstlineno__r   r'   r-   r   r   rQ   re   __static_attributes__rg   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 S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   rH   NrK   rO   s          r&   rQ   AsyncModels.retrieve   s     > VW_Vbcdd
/T\]bTcTc9P%9P1Pirst
"
 YY(:.(+Q[ "  
 
 	
 
s   BB
BB
rS   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$ )rX   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   r[   r\   r]   r_   )r   r   rM   r   rb   r   r   r   r   r   rc   rd   s	            r&   re   AsyncModels.list   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!"=)(+'%%$,%.!&
 &55  # " 
 	
r)   rg   )rh   rz   )rh   r}   ri   )rT   ro   rU   ro   rV   rp   r0   rj   r1   rk   r2   rl   r3   rm   r4   rn   rh   z7AsyncPaginator[BetaModelInfo, AsyncPage[BetaModelInfo]]rq   rg   r)   r&   r   r      s   0 0 6 6 26 )-$("&;D+
+
 /	+
 &+
 "+
  +
 9+
 
+
`  $ $ 15 )-$("&;D?
 ?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
A?
 ?
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_wrapperrQ   re   r%   modelss     r&   __init__ModelsWithRawResponse.__init__  s;    (@@OO
 %<<KK
	r)   r   re   rQ   Nr   r   rh   Nonerr   rs   rt   ru   r   rv   rg   r)   r&   r#   r#         
r)   r#   c                      \ rS rSrSS jrSrg)rz   i*  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g r;   )r   r   async_to_raw_response_wrapperrQ   re   r   s     r&   r   #AsyncModelsWithRawResponse.__init__+  s;    (FFOO
 %BBKK
	r)   r   Nr   r   rh   r   r   rg   r)   r&   rz   rz   *  r   r)   rz   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   rQ   re   r   s     r&   r   $ModelsWithStreamingResponse.__init__7  s/    4OO
 1KK
	r)   r   Nr   r   rg   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   rQ   re   r   s     r&   r   )AsyncModelsWithStreamingResponse.__init__C  s/    :OO
 7KK
	r)   r   Nr   r   rg   r)   r&   r}   r}   B  r   r)   r}   ).
__future__r   typingr   httpx r   _typesr   r   r	   r
   r   r   r   _utilsr   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   
types.betar   _base_clientr   r   types.anthropic_beta_paramr   types.beta.beta_model_infor   __all__r   r   r#   rz   r,   r}   rg   r)   r&   <module>r      s    #     K K K @ @ & : Y - + @ < 7]
#@
_ @
F@
" @
F	
 	
	
 	
	
 	
	
 	
r)   