
    	h                    6   d dl mZ ddlmZ ddlmZmZmZmZm	Z	m
Z
 ddlmZmZ ddlmZmZmZmZmZmZ ddlmZmZ dd	lmZ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!dS )    )annotations   )cached_property   )
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)Chat	AsyncChat)RealtimeAsyncRealtimeBeta	AsyncBetac                      e Zd Zedd            Zedd            Zedd            Zedd	            Zedd            Zedd            Z	dS )r   returnr   c                *    t          | j                  S N)r   _clientselfs    g/var/www/html/web-builder-api.evdpl.com/venv/lib/python3.11/site-packages/openai/resources/beta/beta.pychatz	Beta.chat!   s    DL!!!    r   c                *    t          | j                  S r   )r   r   r    s    r"   realtimezBeta.realtime%   s    %%%r$   r   c                *    t          | j                  S r   )r   r   r    s    r"   
assistantszBeta.assistants)   s    $,'''r$   r   c                *    t          | j                  S r   )r   r   r    s    r"   threadszBeta.threads-   s    t|$$$r$   BetaWithRawResponsec                     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
        )r+   r    s    r"   with_raw_responsezBeta.with_raw_response1   s     #4(((r$   BetaWithStreamingResponsec                     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
        )r/   r    s    r"   with_streaming_responsezBeta.with_streaming_response;   s     )...r$   N)r   r   )r   r   )r   r   )r   r   )r   r+   )r   r/   
__name__
__module____qualname__r   r#   r&   r(   r*   r.   r2    r$   r"   r   r       s        " " " _" & & & _& ( ( ( _( % % % _% ) ) ) _) / / / _/ / /r$   c                      e Zd Zedd            Zedd            Zedd            Zedd	            Zedd            Zedd            Z	dS )r   r   r   c                *    t          | j                  S r   )r   r   r    s    r"   r#   zAsyncBeta.chatF   s    &&&r$   r   c                *    t          | j                  S r   )r   r   r    s    r"   r&   zAsyncBeta.realtimeJ   s    T\***r$   r   c                *    t          | j                  S r   )r   r   r    s    r"   r(   zAsyncBeta.assistantsN   s    t|,,,r$   r   c                *    t          | j                  S r   )r   r   r    s    r"   r*   zAsyncBeta.threadsR   s    DL)))r$   AsyncBetaWithRawResponsec                     t          |           S r-   )r=   r    s    r"   r.   zAsyncBeta.with_raw_responseV   s     (---r$   AsyncBetaWithStreamingResponsec                     t          |           S r1   )r?   r    s    r"   r2   z!AsyncBeta.with_streaming_response`   s     .d333r$   N)r   r   )r   r   )r   r   )r   r   )r   r=   )r   r?   r3   r7   r$   r"   r   r   E   s        ' ' ' _' + + + _+ - - - _- * * * _* . . . _. 4 4 4 _4 4 4r$   c                  F    e Zd ZddZedd            Zedd	            Zd
S )r+   betar   r   Nonec                    || _         d S r   _betar!   rB   s     r"   __init__zBetaWithRawResponse.__init__k       


r$   r	   c                4    t          | j        j                  S r   )r	   rF   r(   r    s    r"   r(   zBetaWithRawResponse.assistantsn   s    ()>???r$   r   c                4    t          | j        j                  S r   )r   rF   r*   r    s    r"   r*   zBetaWithRawResponse.threadsr   s    %dj&8999r$   NrB   r   r   rC   )r   r	   )r   r   r4   r5   r6   rH   r   r(   r*   r7   r$   r"   r+   r+   j   sl            @ @ @ _@ : : : _: : :r$   r+   c                  F    e Zd ZddZedd            Zedd	            Zd
S )r=   rB   r   r   rC   c                    || _         d S r   rE   rG   s     r"   rH   z!AsyncBetaWithRawResponse.__init__x   rI   r$   r
   c                4    t          | j        j                  S r   )r
   rF   r(   r    s    r"   r(   z#AsyncBetaWithRawResponse.assistants{   s    -dj.CDDDr$   r   c                4    t          | j        j                  S r   )r   rF   r*   r    s    r"   r*   z AsyncBetaWithRawResponse.threads   s    *4:+=>>>r$   NrB   r   r   rC   )r   r
   )r   r   rM   r7   r$   r"   r=   r=   w   sl            E E E _E ? ? ? _? ? ?r$   r=   c                  F    e Zd ZddZedd            Zedd	            Zd
S )r/   rB   r   r   rC   c                    || _         d S r   rE   rG   s     r"   rH   z"BetaWithStreamingResponse.__init__   rI   r$   r   c                4    t          | j        j                  S r   )r   rF   r(   r    s    r"   r(   z$BetaWithStreamingResponse.assistants   s    .tz/DEEEr$   r   c                4    t          | j        j                  S r   )r   rF   r*   r    s    r"   r*   z!BetaWithStreamingResponse.threads   s    +DJ,>???r$   NrL   )r   r   )r   r   rM   r7   r$   r"   r/   r/      sr            F F F _F @ @ @ _@ @ @r$   r/   c                  F    e Zd ZddZedd            Zedd	            Zd
S )r?   rB   r   r   rC   c                    || _         d S r   rE   rG   s     r"   rH   z'AsyncBetaWithStreamingResponse.__init__   rI   r$   r   c                4    t          | j        j                  S r   )r   rF   r(   r    s    r"   r(   z)AsyncBetaWithStreamingResponse.assistants   s    3DJ4IJJJr$   r   c                4    t          | j        j                  S r   )r   rF   r*   r    s    r"   r*   z&AsyncBetaWithStreamingResponse.threads   s    01CDDDr$   NrR   )r   r   )r   r   rM   r7   r$   r"   r?   r?      sr            K K K _K E E E _E E Er$   r?   N)"
__future__r   _compatr   r(   r   r   r	   r
   r   r   	_resourcer   r   threads.threadsr   r   r   r   r   r   resources.chatr   r   realtime.realtimer   r   __all__r   r   r+   r=   r/   r?   r7   r$   r"   <module>rb      sF   # " " " " " & & & & & &                ; : : : : : : :                . - - - - - - -       
 ;
"/ "/ "/ "/ "/? "/ "/ "/J"4 "4 "4 "4 "4  "4 "4 "4J
: 
: 
: 
: 
: 
: 
: 
:
? 
? 
? 
? 
? 
? 
? 
?
@ 
@ 
@ 
@ 
@ 
@ 
@ 
@
E 
E 
E 
E 
E 
E 
E 
E 
E 
Er$   