
    g                    @   d dl 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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mZmZ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   )Chat	AsyncChat)
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)RealtimeAsyncRealtimeRealtimeWithRawResponseAsyncRealtimeWithRawResponseRealtimeWithStreamingResponse"AsyncRealtimeWithStreamingResponse)VectorStoresAsyncVectorStoresVectorStoresWithRawResponse AsyncVectorStoresWithRawResponse!VectorStoresWithStreamingResponse&AsyncVectorStoresWithStreamingResponse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	edd       Z
y)r#   c                ,    t        | j                        S N)r   _clientselfs    O/var/www/openai/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.realtime1   s    %%r-   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   vector_storeszBeta.vector_stores5       DLL))r-   c                ,    t        | j                        S r'   )r	   r(   r)   s    r+   
assistantszBeta.assistants9   s    $,,''r-   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   threadszBeta.threads=   s    t||$$r-   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return the
        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_responseA   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_responseK   s     )..r-   N)returnr   )r?   r   )r?   r   )r?   r	   )r?   r   )r?   r9   )r?   r=   __name__
__module____qualname__r   r,   r/   r1   r4   r6   r:   r>    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	edd       Z
y)r$   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   r,   zAsyncBeta.chatV   s    &&r-   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   r/   zAsyncBeta.realtimeZ   s    T\\**r-   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   r1   zAsyncBeta.vector_stores^   s     ..r-   c                ,    t        | j                        S r'   )r
   r(   r)   s    r+   r4   zAsyncBeta.assistantsb   s    t||,,r-   c                ,    t        | j                        S r'   )r   r(   r)   s    r+   r6   zAsyncBeta.threadsf   r2   r-   c                    t        |       S r8   )AsyncBetaWithRawResponser)   s    r+   r:   zAsyncBeta.with_raw_responsej   s     (--r-   c                    t        |       S r<   )AsyncBetaWithStreamingResponser)   s    r+   r>   z!AsyncBeta.with_streaming_responset   s     .d33r-   N)r?   r   )r?   r   )r?   r   )r?   r
   )r?   r   )r?   rL   )r?   rN   r@   rD   r-   r+   r$   r$   U   s    ' ' + + / / - - * * . . 4 4r-   c                  \    e Zd ZddZedd       Zed	d       Zed
d       Zedd       Zy)r9   c                    || _         y r'   _betar*   betas     r+   __init__zBetaWithRawResponse.__init__   	    
r-   c                @    t        | j                  j                        S r'   )r   rR   r/   r)   s    r+   r/   zBetaWithRawResponse.realtime   s    &tzz':':;;r-   c                @    t        | j                  j                        S r'   )r   rR   r1   r)   s    r+   r1   z!BetaWithRawResponse.vector_stores   s    *4::+C+CDDr-   c                @    t        | j                  j                        S r'   )r   rR   r4   r)   s    r+   r4   zBetaWithRawResponse.assistants   s    ()>)>??r-   c                @    t        | j                  j                        S r'   )r   rR   r6   r)   s    r+   r6   zBetaWithRawResponse.threads   s    %djj&8&899r-   NrT   r#   r?   None)r?   r   )r?   r   )r?   r   )r?   r   	rA   rB   rC   rU   r   r/   r1   r4   r6   rD   r-   r+   r9   r9   ~   s[     < < E E @ @ : :r-   r9   c                  \    e Zd ZddZedd       Zed	d       Zed
d       Zedd       Zy)rL   c                    || _         y r'   rQ   rS   s     r+   rU   z!AsyncBetaWithRawResponse.__init__   rV   r-   c                @    t        | j                  j                        S r'   )r   rR   r/   r)   s    r+   r/   z!AsyncBetaWithRawResponse.realtime   s    +DJJ,?,?@@r-   c                @    t        | j                  j                        S r'   )r    rR   r1   r)   s    r+   r1   z&AsyncBetaWithRawResponse.vector_stores   s    /

0H0HIIr-   c                @    t        | j                  j                        S r'   )r   rR   r4   r)   s    r+   r4   z#AsyncBetaWithRawResponse.assistants   s    -djj.C.CDDr-   c                @    t        | j                  j                        S r'   )r   rR   r6   r)   s    r+   r6   z AsyncBetaWithRawResponse.threads   s    *4::+=+=>>r-   NrT   r$   r?   r\   )r?   r   )r?   r    )r?   r   )r?   r   r]   rD   r-   r+   rL   rL      s]     A A J J E E ? ?r-   rL   c                  \    e Zd ZddZedd       Zed	d       Zed
d       Zedd       Zy)r=   c                    || _         y r'   rQ   rS   s     r+   rU   z"BetaWithStreamingResponse.__init__   rV   r-   c                @    t        | j                  j                        S r'   )r   rR   r/   r)   s    r+   r/   z"BetaWithStreamingResponse.realtime   s    ,TZZ-@-@AAr-   c                @    t        | j                  j                        S r'   )r!   rR   r1   r)   s    r+   r1   z'BetaWithStreamingResponse.vector_stores   s    01I1IJJr-   c                @    t        | j                  j                        S r'   )r   rR   r4   r)   s    r+   r4   z$BetaWithStreamingResponse.assistants   s    .tzz/D/DEEr-   c                @    t        | j                  j                        S r'   )r   rR   r6   r)   s    r+   r6   z!BetaWithStreamingResponse.threads   s    +DJJ,>,>??r-   Nr[   )r?   r   )r?   r!   )r?   r   )r?   r   r]   rD   r-   r+   r=   r=      s_     B B K K F F @ @r-   r=   c                  \    e Zd ZddZedd       Zed	d       Zed
d       Zedd       Zy)rN   c                    || _         y r'   rQ   rS   s     r+   rU   z'AsyncBetaWithStreamingResponse.__init__   rV   r-   c                @    t        | j                  j                        S r'   )r   rR   r/   r)   s    r+   r/   z'AsyncBetaWithStreamingResponse.realtime   s    1$**2E2EFFr-   c                @    t        | j                  j                        S r'   )r"   rR   r1   r)   s    r+   r1   z,AsyncBetaWithStreamingResponse.vector_stores   s    5djj6N6NOOr-   c                @    t        | j                  j                        S r'   )r   rR   r4   r)   s    r+   r4   z)AsyncBetaWithStreamingResponse.assistants   s    3DJJ4I4IJJr-   c                @    t        | j                  j                        S r'   )r   rR   r6   r)   s    r+   r6   z&AsyncBetaWithStreamingResponse.threads   s    01C1CDDr-   Nrd   )r?   r   )r?   r"   )r?   r   )r?   r   r]   rD   r-   r+   rN   rN      s_     G G P P K K E Er-   rN   N)-
__future__r   _compatr   	chat.chatr   r   r4   r	   r
   r   r   r   r   	_resourcer   r   threads.threadsr   r   r   r   r   r   realtime.realtimer   r   r   r   r   r   vector_stores.vector_storesr   r   r   r    r!   r"   __all__r#   r$   r9   rL   r=   rN   rD   r-   r+   <module>ry      s    # & &  ;    ;
&/? &/R&4  &4R: :*? ?*@ @*E Er-   