
    h+                    (   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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)	NOT_GIVENBodyQueryHeadersNotGiven)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
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/openai/openai-python#accessing-raw-response-data-eg-headers
)ModelsWithRawResponseselfs    I/var/www/html/env/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          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES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/r(   optionscast_to
ValueError_getr   r   r   modelr)   r*   r+   r,   s         r   retrieveModels.retrieve+   sO    0 STYS\]^^yyug(+Q[   
 	
r"   c               T    U R                  S[        [           [        XX4S9[        S9$ zy
Lists the currently available models, and provides basic information about each
one such as the owner and availability.
z/modelsr(   )pager2   r8   )_get_api_listr   r   r   r   r)   r*   r+   r,   s        r   listModels.listM   s9     !!%(+Q[  " 
 	
r"   c          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES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
r/   r0   r(   r1   r5   _deleter   r   r7   s         r   deleteModels.deleted   sO    2 STYS\]^^||ug(+Q[ !  
 	
r"    )returnr   )rI   r%   r8   strr)   Headers | Noner*   Query | Noner+   Body | Noner,   'float | httpx.Timeout | None | NotGivenrI   r   )
r)   rL   r*   rM   r+   rN   r,   rO   rI   zSyncPage[Model]r8   rK   r)   rL   r*   rM   r+   rN   r,   rO   rI   r   __name__
__module____qualname____firstlineno__r   r    r&   r   r9   r@   rF   __static_attributes__rH   r"   r   r   r      s   + + 1 1 )-$("&;D 
 
 & 
 " 
   
 9 
 
 
N )-$("&;D

 &
 "
  
 9
 

: )-$("&;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/   r0   r(   r1   Nr4   r7   s         r   r9   AsyncModels.retrieve   s\     0 STYS\]^^YYug(+Q[   
 
 	
 
   :AAAc               T    U R                  S[        [           [        XX4S9[        S9$ r<   )r>   r   r   r   r?   s        r   r@   AsyncModels.list   s:     !!5!(+Q[  " 
 	
r"   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)rC   r/   r0   r(   r1   NrD   r7   s         r   rF   AsyncModels.delete   s\     2 STYS\]^^\\ug(+Q[ ! " 
 
 	
 
ra   rH   )rI   rZ   )rI   r]   rJ   )
r)   rL   r*   rM   r+   rN   r,   rO   rI   z'AsyncPaginator[Model, AsyncPage[Model]]rP   rQ   rH   r"   r   r   r      s   0 0 6 6 )-$("&;D 
 
 & 
 " 
   
 9 
 
 
N )-$("&;D

 &
 "
  
 9
 
1
: )-$("&;D!
!
 &!
 "!
  !
 9!
 
!
 !
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        [        R                  " UR
                  5      U l        g N)_modelsr   to_raw_response_wrapperr9   r@   rF   r   modelss     r   __init__ModelsWithRawResponse.__init__   sV    (@@OO
 %<<KK
	 '>>MM
r"   rj   rF   r@   r9   Nrm   r   rI   NonerR   rS   rT   rU   rn   rV   rH   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        [        R                  " UR
                  5      U l        g ri   )rj   r   async_to_raw_response_wrapperr9   r@   rF   rl   s     r   rn   #AsyncModelsWithRawResponse.__init__	  sV    (FFOO
 %BBKK
	 'DDMM
r"   rp   Nrm   r   rI   rr   rs   rH   r"   r   rZ   rZ     rt   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   r9   r@   rF   rl   s     r   rn   $ModelsWithStreamingResponse.__init__  sD    4OO
 1KK
	 3MM
r"   rp   Nrq   rs   rH   r"   r   r%   r%     rt   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   r9   r@   rF   rl   s     r   rn   )AsyncModelsWithStreamingResponse.__init__'  sD    :OO
 7KK
	 9MM
r"   rp   Nry   rs   rH   r"   r   r]   r]   &  rt   r"   r]   )$
__future__r   httpx r   _typesr   r   r   r	   r
   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   types.modelr   _base_clientr   r   types.model_deletedr   __all__r   r   r   rZ   r%   r]   rH   r"   r   <module>r      s    #   > > % 9 X ,  /]
#n
_ n
bn
" n
b
 

 

 

 
r"   