
    zvhm                        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mZmZ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%y)    )annotations   )cached_property   )
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)Chat	AsyncChat)RealtimeAsyncRealtimeRealtimeWithRawResponseAsyncRealtimeWithRawResponseRealtimeWithStreamingResponse"AsyncRealtimeWithStreamingResponseBeta	AsyncBetac                  x    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	y)r   c                ,    t        | j                        S N)r   _clientselfs    R/var/www/html/luna/venv/lib/python3.12/site-packages/openai/resources/beta/beta.pychatz	Beta.chat%   s    DLL!!    c                ,    t        | j                        S r!   )r   r"   r#   s    r%   realtimezBeta.realtime)   s    %%r'   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   
assistantszBeta.assistants-   s    $,,''r'   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   threadszBeta.threads1   s    t||$$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
        )BetaWithRawResponser#   s    r%   with_raw_responsezBeta.with_raw_response5   s     #4((r'   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
        )BetaWithStreamingResponser#   s    r%   with_streaming_responsezBeta.with_streaming_response?   s     )..r'   N)returnr   )r6   r   )r6   r   )r6   r   )r6   r0   )r6   r4   
__name__
__module____qualname__r   r&   r)   r+   r-   r1   r5    r'   r%   r   r   $   sx    " " & & ( ( % % ) ) / /r'   c                  x    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	y)r   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   r&   zAsyncBeta.chatJ   s    &&r'   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   r)   zAsyncBeta.realtimeN   s    T\\**r'   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   r+   zAsyncBeta.assistantsR   s    t||,,r'   c                ,    t        | j                        S r!   )r   r"   r#   s    r%   r-   zAsyncBeta.threadsV   s    DLL))r'   c                    t        |       S r/   )AsyncBetaWithRawResponser#   s    r%   r1   zAsyncBeta.with_raw_responseZ   s     (--r'   c                    t        |       S r3   )AsyncBetaWithStreamingResponser#   s    r%   r5   z!AsyncBeta.with_streaming_responsed   s     .d33r'   N)r6   r   )r6   r   )r6   r   )r6   r   )r6   rB   )r6   rD   r7   r;   r'   r%   r   r   I   sx    ' ' + + - - * * . . 4 4r'   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
r0   c                    || _         y r!   _betar$   betas     r%   __init__zBetaWithRawResponse.__init__o   	    
r'   c                @    t        | j                  j                        S r!   )r   rH   r)   r#   s    r%   r)   zBetaWithRawResponse.realtimer   s    &tzz':':;;r'   c                @    t        | j                  j                        S r!   )r	   rH   r+   r#   s    r%   r+   zBetaWithRawResponse.assistantsv   s    ()>)>??r'   c                @    t        | j                  j                        S r!   )r   rH   r-   r#   s    r%   r-   zBetaWithRawResponse.threadsz   s    %djj&8&899r'   NrJ   r   r6   None)r6   r   )r6   r	   )r6   r   r8   r9   r:   rK   r   r)   r+   r-   r;   r'   r%   r0   r0   n   sE     < < @ @ : :r'   r0   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
rB   c                    || _         y r!   rG   rI   s     r%   rK   z!AsyncBetaWithRawResponse.__init__   rL   r'   c                @    t        | j                  j                        S r!   )r   rH   r)   r#   s    r%   r)   z!AsyncBetaWithRawResponse.realtime   s    +DJJ,?,?@@r'   c                @    t        | j                  j                        S r!   )r
   rH   r+   r#   s    r%   r+   z#AsyncBetaWithRawResponse.assistants   s    -djj.C.CDDr'   c                @    t        | j                  j                        S r!   )r   rH   r-   r#   s    r%   r-   z AsyncBetaWithRawResponse.threads   s    *4::+=+=>>r'   NrJ   r   r6   rQ   )r6   r   )r6   r
   )r6   r   rR   r;   r'   r%   rB   rB      sG     A A E E ? ?r'   rB   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
r4   c                    || _         y r!   rG   rI   s     r%   rK   z"BetaWithStreamingResponse.__init__   rL   r'   c                @    t        | j                  j                        S r!   )r   rH   r)   r#   s    r%   r)   z"BetaWithStreamingResponse.realtime   s    ,TZZ-@-@AAr'   c                @    t        | j                  j                        S r!   )r   rH   r+   r#   s    r%   r+   z$BetaWithStreamingResponse.assistants   s    .tzz/D/DEEr'   c                @    t        | j                  j                        S r!   )r   rH   r-   r#   s    r%   r-   z!BetaWithStreamingResponse.threads   s    +DJJ,>,>??r'   NrP   )r6   r   )r6   r   )r6   r   rR   r;   r'   r%   r4   r4      sI     B B F F @ @r'   r4   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
rD   c                    || _         y r!   rG   rI   s     r%   rK   z'AsyncBetaWithStreamingResponse.__init__   rL   r'   c                @    t        | j                  j                        S r!   )r   rH   r)   r#   s    r%   r)   z'AsyncBetaWithStreamingResponse.realtime   s    1$**2E2EFFr'   c                @    t        | j                  j                        S r!   )r   rH   r+   r#   s    r%   r+   z)AsyncBetaWithStreamingResponse.assistants   s    3DJJ4I4IJJr'   c                @    t        | j                  j                        S r!   )r   rH   r-   r#   s    r%   r-   z&AsyncBetaWithStreamingResponse.threads   s    01C1CDDr'   NrX   )r6   r   )r6   r   )r6   r   rR   r;   r'   r%   rD   rD      sI     G G K K E Er'   rD   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   r   r   r   r   __all__r   r   r0   rB   r4   rD   r;   r'   r%   <module>rj      s    # &  ;  .  ;
"/? "/J"4  "4J: :"? ?"@ @"E Er'   