
    _jA/                    4   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
  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  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)BodyQueryHeadersNotGiven	not_given)path_template)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncPage	AsyncPage)Model)AsyncPaginatormake_request_options)ModelDeletedModelsAsyncModelsc                      \ rS 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      :List and describe the various models available in the API.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/openai/openai-python#accessing-raw-response-data-eg-headers
)ModelsWithRawResponseselfs    L/home/rurouni/.local/lib/python3.13/site-packages/openai/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/openai/openai-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                   U(       d  [        SU< 35      eU R                  [        SUS9[        UUUUSS0S9[        S9$ )h  
Retrieves a model instance, providing basic information about the model such as
the owner and permissioning.

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 /models/{model}modelbearer_authTr+   r,   r-   r.   securityoptionscast_to
ValueError_getr   r   r   r    r4   r+   r,   r-   r.   s         r!   retrieveModels.retrieve.   s^    0 STYS\]^^yy+59(+'%'.   

 
	
r$   c               ^    U R                  S[        [           [        UUUUSS0S9[        S9$ zy
Lists the currently available models, and provides basic information about each
one such as the owner and availability.
z/modelsr5   Tr6   )pager9   r4   )_get_api_listr   r   r   r    r+   r,   r-   r.   s        r!   listModels.listT   sG     !!%(+'%'.  " 
 	
r$   c                   U(       d  [        SU< 35      eU R                  [        SUS9[        UUUUSS0S9[        S9$ )[  Delete a fine-tuned model.

You must have the Owner role in your organization to
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
r1   r2   r3   r5   Tr6   r8   r<   _deleter   r   r   r>   s         r!   deleteModels.deleteo   s^    2 STYS\]^^||+59(+'%'. !  

 
	
r$    )returnr   )rO   r'   r4   strr+   Headers | Noner,   Query | Noner-   Body | Noner.   'float | httpx.Timeout | None | NotGivenrO   r   )
r+   rR   r,   rS   r-   rT   r.   rU   rO   zSyncPage[Model]r4   rQ   r+   rR   r,   rS   r-   rT   r.   rU   rO   r   __name__
__module____qualname____firstlineno____doc__r   r"   r(   r
   r?   rF   rL   __static_attributes__rN   r$   r!   r   r      s   D+ + 1 1 )-$("&;D$
$
 &$
 "$
  $
 9$
 
$
V )-$("&;D

 &
 "
  
 9
 

B )-$("&;D%
%
 &%
 "%
  %
 9%
 
%
 %
r$   c                      \ rS 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      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S9[        UUUUSS0S9[        S9I Sh  vN $  N7f)	r0   r1   r2   r3   r5   Tr6   r8   Nr;   r>   s         r!   r?   AsyncModels.retrieve   sk     0 STYS\]^^YY+59(+'%'.   

 

 
	
 

   AAAAc               ^    U R                  S[        [           [        UUUUSS0S9[        S9$ rB   )rD   r   r   r   rE   s        r!   rF   AsyncModels.list   sH     !!5!(+'%'.  " 
 	
r$   c                  #    U(       d  [        SU< 35      eU R                  [        SUS9[        UUUUSS0S9[        S9I Sh  vN $  N7f)	rI   r1   r2   r3   r5   Tr6   r8   NrJ   r>   s         r!   rL   AsyncModels.delete   sk     2 STYS\]^^\\+59(+'%'. ! " 

 

 
	
 

rh   rN   )rO   ra   )rO   rd   rP   )
r+   rR   r,   rS   r-   rT   r.   rU   rO   z'AsyncPaginator[Model, AsyncPage[Model]]rV   rW   rN   r$   r!   r   r      s   D0 0 6 6 )-$("&;D$
$
 &$
 "$
  $
 9$
 
$
V )-$("&;D

 &
 "
  
 9
 
1
B )-$("&;D%
%
 &%
 "%
  %
 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        [        R                  " UR
                  5      U l        g N)_modelsr   to_raw_response_wrapperr?   rF   rL   r    modelss     r!   __init__ModelsWithRawResponse.__init__  sV    (@@OO
 %<<KK
	 '>>MM
r$   rp   rL   rF   r?   Nrs   r   rO   NonerX   rY   rZ   r[   rt   r]   rN   r$   r!   r   r         
r$   r   c                      \ rS rSrSS jrSrg)ra   i%  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        g ro   )rp   r   async_to_raw_response_wrapperr?   rF   rL   rr   s     r!   rt   #AsyncModelsWithRawResponse.__init__&  sV    (FFOO
 %BBKK
	 'DDMM
r$   rv   Nrs   r   rO   rx   ry   rN   r$   r!   ra   ra   %  rz   r$   ra   c                      \ rS rSrSS jrSrg)r'   i4  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ro   )rp   r   r?   rF   rL   rr   s     r!   rt   $ModelsWithStreamingResponse.__init__5  sD    4OO
 1KK
	 3MM
r$   rv   Nrw   ry   rN   r$   r!   r'   r'   4  rz   r$   r'   c                      \ rS rSrSS jrSrg)rd   iC  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        g ro   )rp   r   r?   rF   rL   rr   s     r!   rt   )AsyncModelsWithStreamingResponse.__init__D  sD    :OO
 7KK
	 9MM
r$   rv   Nr   ry   rN   r$   r!   rd   rd   C  rz   r$   rd   )&
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   types.modelr   _base_clientr   r   types.model_deletedr   __all__r   r   r   ra   r'   rd   rN   r$   r!   <module>r      s    #   > > " % 9 X ,  /]
#|
_ |
~|
" |
~
 

 

 

 
r$   