
    Mi+                    4   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  SSK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/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   )_legacy_response)model_list_params)	NOT_GIVENBodyQueryHeadersNotGiven)maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPage	AsyncPage)AsyncPaginatormake_request_options)	ModelInfo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    t/var/www/eduai.edurigo.com/storigo/production/storigo_env/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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.

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.

  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 /v1/models/r)   optionscast_to
ValueError_getr   r   r   model_idr*   r+   r,   r-   s         r    retrieveModels.retrieve)   sO    8 VW_Vbcddyy($(+Q[   
 	
r#   after_id	before_idlimitr*   r+   r,   r-   c                   U R                  S[        [           [        UUUU[	        UUUS.[
        R                  5      S9[        S9$ a)  
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`.

  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
z
/v1/models)r=   r>   r?   )r*   r+   r,   r-   query)pager3   model)_get_api_listr   r   r   r   r   ModelListParamsr   r=   r>   r?   r*   r+   r,   r-   s           r    listModels.listO   sb    L !!)$(+'%%$,%.!&
 &55 # " 
 	
r#    )returnr   )rK   r&   r9   strr*   Headers | Noner+   Query | Noner,   Body | Noner-   'float | httpx.Timeout | None | NotGivenrK   r   )r=   str | NotGivenr>   rR   r?   int | NotGivenr*   rN   r+   rO   r,   rP   r-   rQ   rK   zSyncPage[ModelInfo]__name__
__module____qualname____firstlineno__r   r!   r'   r   r:   rH   __static_attributes__rJ   r#   r    r   r      s    + + 1 1 )-$("&;D$
$
 &$
 "$
  $
 9$
 
$
R $-$- ) )-$("&;D8
 !8
 "	8

 8
 &8
 "8
  8
 98
 
8
 8
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U R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)r/   r0   r1   r)   r2   Nr5   r8   s         r    r:   AsyncModels.retrieve   s\     8 VW_VbcddYY($(+Q[   
 
 	
 
s   :AAAr<   c                   U R                  S[        [           [        UUUU[	        UUUS.[
        R                  5      S9[        S9$ rA   )rE   r   r   r   r   r   rF   rG   s           r    rH   AsyncModels.list   sb    L !!9%(+'%%$,%.!&
 &55 # " 
 	
r#   rJ   )rK   r]   )rK   r`   rL   )r=   rR   r>   rR   r?   rS   r*   rN   r+   rO   r,   rP   r-   rQ   rK   z/AsyncPaginator[ModelInfo, AsyncPage[ModelInfo]]rT   rJ   r#   r    r   r      s    0 0 6 6 )-$("&;D$
$
 &$
 "$
  $
 9$
 
$
R $-$- ) )-$("&;D8
 !8
 "	8

 8
 &8
 "8
  8
 98
 
98
 8
r#   c                      \ rS rSrSS jrSrg)r      c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g N)_modelsr   to_raw_response_wrapperr:   rH   r   modelss     r    __init__ModelsWithRawResponse.__init__   s;    (@@OO
 %<<KK
	r#   rj   rH   r:   Nrm   r   rK   NonerU   rV   rW   rX   rn   rY   rJ   r#   r    r   r          
r#   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 ri   )rj   r   async_to_raw_response_wrapperr:   rH   rl   s     r    rn   #AsyncModelsWithRawResponse.__init__  s;    (FFOO
 %BBKK
	r#   rp   Nrm   r   rK   rr   rs   rJ   r#   r    r]   r]     rt   r#   r]   c                      \ rS rSrSS jrSrg)r&   i  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g ri   )rj   r   r:   rH   rl   s     r    rn   $ModelsWithStreamingResponse.__init__  s/    4OO
 1KK
	r#   rp   Nrq   rs   rJ   r#   r    r&   r&     rt   r#   r&   c                      \ rS rSrSS jrSrg)r`   i#  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g ri   )rj   r   r:   rH   rl   s     r    rn   )AsyncModelsWithStreamingResponse.__init__$  s/    :OO
 7KK
	r#   rp   Nry   rs   rJ   r#   r    r`   r`   #  rt   r#   r`   )&
__future__r   httpx r   typesr   _typesr   r   r	   r
   r   _utilsr   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.model_infor   __all__r   r   r   r]   r&   r`   rJ   r#   r    <module>r      s    #   % > > $ % 9 X , ? (]
#r
_ r
jr
" r
j	
 	
	
 	
	
 	
	
 	
r#   