
    zvh[                       d dl mZ d dlZddlmZ ddlmZmZmZm	Z	m
Z
 ddlmZ ddlmZmZ ddlmZmZmZmZ dd	lmZ d
dgZ G d d
e      Z G d de      Z G d d      Z G d d      Z G d d      Z G d d      Zy)    )annotationsN   )_legacy_response)	NOT_GIVENBodyQueryHeadersNotGiven)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponse#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)make_request_optionsContentAsyncContentc                  ^    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S a  
        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
        )ContentWithRawResponseselfs    a/var/www/html/luna/venv/lib/python3.12/site-packages/openai/resources/containers/files/content.pywith_raw_responsezContent.with_raw_response   s     &d++    c                    t        |       S 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
        )ContentWithStreamingResponser   s    r   with_streaming_responsezContent.with_streaming_response!   s     ,D11r   Nextra_headersextra_query
extra_bodytimeoutc          	         |st        d|      |st        d|      ddi|xs i }| j                  d| d| dt        ||||      t        j                  	      S )
S  
        Retrieve Container File Content

        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
        ;Expected a non-empty value for `container_id` but received 6Expected a non-empty value for `file_id` but received Acceptapplication/binary/containers//files//contentr"   optionscast_to
ValueError_getr   r   HttpxBinaryResponseContentr   file_idcontainer_idr#   r$   r%   r&   s          r   retrievezContent.retrieve*   s    0 Z[gZjkllUV]U`abb!#7QM<ORQyy<.yA(+Q[el %??  
 	
r   )returnr   )r;   r    r8   strr9   r=   r#   zHeaders | Noner$   zQuery | Noner%   zBody | Noner&   z'float | httpx.Timeout | None | NotGivenr;   z+_legacy_response.HttpxBinaryResponseContent__name__
__module____qualname__r   r   r!   r   r:    r   r   r   r      s    , , 2 2 )-$("&;D#
#
 	#
 &#
 "#
  #
 9#
 
5#
r   c                  ^    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S r   )AsyncContentWithRawResponser   s    r   r   zAsyncContent.with_raw_responseQ   s     +400r   c                    t        |       S r   )!AsyncContentWithStreamingResponser   s    r   r!   z$AsyncContent.with_streaming_response[   s     166r   Nr"   c          	        K   |st        d|      |st        d|      ddi|xs i }| j                  d| d| dt        ||||      t        j                  	       d
{   S 7 w)r(   r)   r*   r+   r,   r-   r.   r/   r"   r0   Nr3   r7   s          r   r:   zAsyncContent.retrieved   s     0 Z[gZjkllUV]U`abb!#7QM<ORQYY<.yA(+Q[el %??  
 
 	
 
s   A$A-&A+'A-)r;   rE   )r;   rG   r<   r>   rB   r   r   r   r   P   s    1 1 7 7 )-$("&;D#
#
 	#
 &#
 "#
  #
 9#
 
5#
r   c                      e Zd ZddZy)r   c                Z    || _         t        j                  |j                        | _        y N)_contentr   to_raw_response_wrapperr:   r   contents     r   __init__zContentWithRawResponse.__init__   s$    (@@
r   NrO   r   r;   Noner?   r@   rA   rP   rB   r   r   r   r          
r   r   c                      e Zd ZddZy)rE   c                Z    || _         t        j                  |j                        | _        y rK   )rL   r   async_to_raw_response_wrapperr:   rN   s     r   rP   z$AsyncContentWithRawResponse.__init__   s$    (FF
r   NrO   r   r;   rR   rS   rB   r   r   rE   rE      rT   r   rE   c                      e Zd ZddZy)r    c                P    || _         t        |j                  t              | _        y rK   )rL   r   r:   r   rN   s     r   rP   z%ContentWithStreamingResponse.__init__   s!    ;%
r   NrQ   rS   rB   r   r   r    r           
r   r    c                      e Zd ZddZy)rG   c                P    || _         t        |j                  t              | _        y rK   )rL   r   r:   r   rN   s     r   rP   z*AsyncContentWithStreamingResponse.__init__   s!    A*
r   NrX   rS   rB   r   r   rG   rG      r[   r   rG   )
__future__r   httpx r   _typesr   r   r   r	   r
   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rE   r    rG   rB   r   r   <module>rg      sx    #  ! @ @ ' ;  2n
%7
o 7
t7
# 7
t
 

 

 

 
r   