
    g                    f   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,dS )    )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
dS )r#   returnr   c                *    t          | j                  S N)r   _clientselfs    X/var/www/html/mpstechhub/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.realtime1   s    %%%r.   r   c                *    t          | j                  S r(   )r   r)   r*   s    r,   vector_storeszBeta.vector_stores5       DL)))r.   r	   c                *    t          | j                  S r(   )r	   r)   r*   s    r,   
assistantszBeta.assistants9   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
        )r8   r*   s    r,   with_raw_responsezBeta.with_raw_responseA   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_responseK   s     )...r.   N)r&   r   )r&   r   )r&   r   )r&   r	   )r&   r   )r&   r8   )r&   r<   __name__
__module____qualname__r   r-   r0   r2   r5   r7   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
dS )r$   r&   r   c                *    t          | j                  S r(   )r   r)   r*   s    r,   r-   zAsyncBeta.chatV   s    &&&r.   r   c                *    t          | j                  S r(   )r   r)   r*   s    r,   r0   zAsyncBeta.realtimeZ   s    T\***r.   r   c                *    t          | j                  S r(   )r   r)   r*   s    r,   r2   zAsyncBeta.vector_stores^   s     ...r.   r
   c                *    t          | j                  S r(   )r
   r)   r*   s    r,   r5   zAsyncBeta.assistantsb   s    t|,,,r.   r   c                *    t          | j                  S r(   )r   r)   r*   s    r,   r7   zAsyncBeta.threadsf   r3   r.   AsyncBetaWithRawResponsec                     t          |           S r:   )rK   r*   s    r,   r;   zAsyncBeta.with_raw_responsej   s     (---r.   AsyncBetaWithStreamingResponsec                     t          |           S r>   )rM   r*   s    r,   r?   z!AsyncBeta.with_streaming_responset   s     .d333r.   N)r&   r   )r&   r   )r&   r   )r&   r
   )r&   r   )r&   rK   )r&   rM   r@   rD   r.   r,   r$   r$   U   s        ' ' ' _' + + + _+ / / / _/ - - - _- * * * _* . . . _. 4 4 4 _4 4 4r.   c                  v    e Zd ZddZedd            Zedd	            Zedd            Zedd            ZdS )r8   betar#   r&   Nonec                    || _         d S r(   _betar+   rP   s     r,   __init__zBetaWithRawResponse.__init__       


r.   r   c                4    t          | j        j                  S r(   )r   rT   r0   r*   s    r,   r0   zBetaWithRawResponse.realtime   s    &tz':;;;r.   r   c                4    t          | j        j                  S r(   )r   rT   r2   r*   s    r,   r2   z!BetaWithRawResponse.vector_stores   s    *4:+CDDDr.   r   c                4    t          | j        j                  S r(   )r   rT   r5   r*   s    r,   r5   zBetaWithRawResponse.assistants   s    ()>???r.   r   c                4    t          | j        j                  S r(   )r   rT   r7   r*   s    r,   r7   zBetaWithRawResponse.threads   s    %dj&8999r.   NrP   r#   r&   rQ   )r&   r   )r&   r   )r&   r   )r&   r   	rA   rB   rC   rV   r   r0   r2   r5   r7   rD   r.   r,   r8   r8   ~   s            < < < _< E E E _E @ @ @ _@ : : : _: : :r.   r8   c                  v    e Zd ZddZedd            Zedd	            Zedd            Zedd            ZdS )rK   rP   r$   r&   rQ   c                    || _         d S r(   rS   rU   s     r,   rV   z!AsyncBetaWithRawResponse.__init__   rW   r.   r   c                4    t          | j        j                  S r(   )r   rT   r0   r*   s    r,   r0   z!AsyncBetaWithRawResponse.realtime   s    +DJ,?@@@r.   r    c                4    t          | j        j                  S r(   )r    rT   r2   r*   s    r,   r2   z&AsyncBetaWithRawResponse.vector_stores   s    /
0HIIIr.   r   c                4    t          | j        j                  S r(   )r   rT   r5   r*   s    r,   r5   z#AsyncBetaWithRawResponse.assistants   s    -dj.CDDDr.   r   c                4    t          | j        j                  S r(   )r   rT   r7   r*   s    r,   r7   z AsyncBetaWithRawResponse.threads   s    *4:+=>>>r.   NrP   r$   r&   rQ   )r&   r   )r&   r    )r&   r   )r&   r   r]   rD   r.   r,   rK   rK      s            A A A _A J J J _J E E E _E ? ? ? _? ? ?r.   rK   c                  v    e Zd ZddZedd            Zedd	            Zedd            Zedd            ZdS )r<   rP   r#   r&   rQ   c                    || _         d S r(   rS   rU   s     r,   rV   z"BetaWithStreamingResponse.__init__   rW   r.   r   c                4    t          | j        j                  S r(   )r   rT   r0   r*   s    r,   r0   z"BetaWithStreamingResponse.realtime   s    ,TZ-@AAAr.   r!   c                4    t          | j        j                  S r(   )r!   rT   r2   r*   s    r,   r2   z'BetaWithStreamingResponse.vector_stores   s    01IJJJr.   r   c                4    t          | j        j                  S r(   )r   rT   r5   r*   s    r,   r5   z$BetaWithStreamingResponse.assistants   s    .tz/DEEEr.   r   c                4    t          | j        j                  S r(   )r   rT   r7   r*   s    r,   r7   z!BetaWithStreamingResponse.threads   s    +DJ,>???r.   Nr\   )r&   r   )r&   r!   )r&   r   )r&   r   r]   rD   r.   r,   r<   r<      s            B B B _B K K K _K F F F _F @ @ @ _@ @ @r.   r<   c                  v    e Zd ZddZedd            Zedd	            Zedd            Zedd            ZdS )rM   rP   r$   r&   rQ   c                    || _         d S r(   rS   rU   s     r,   rV   z'AsyncBetaWithStreamingResponse.__init__   rW   r.   r   c                4    t          | j        j                  S r(   )r   rT   r0   r*   s    r,   r0   z'AsyncBetaWithStreamingResponse.realtime   s    1$*2EFFFr.   r"   c                4    t          | j        j                  S r(   )r"   rT   r2   r*   s    r,   r2   z,AsyncBetaWithStreamingResponse.vector_stores   s    5dj6NOOOr.   r   c                4    t          | j        j                  S r(   )r   rT   r5   r*   s    r,   r5   z)AsyncBetaWithStreamingResponse.assistants   s    3DJ4IJJJr.   r   c                4    t          | j        j                  S r(   )r   rT   r7   r*   s    r,   r7   z&AsyncBetaWithStreamingResponse.threads   s    01CDDDr.   Nrd   )r&   r   )r&   r"   )r&   r   )r&   r   r]   rD   r.   r,   rM   rM      s            G G G _G P P P _P K K K _K E E E _E E Er.   rM   N)-
__future__r   _compatr   	chat.chatr   r   r5   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$   r8   rK   r<   rM   rD   r.   r,   <module>ry      s   # " " " " " & & & & & & & & & & & & & &                ; : : : : : : :                                              ;
&/ &/ &/ &/ &/? &/ &/ &/R&4 &4 &4 &4 &4  &4 &4 &4R: : : : : : : :*? ? ? ? ? ? ? ?*@ @ @ @ @ @ @ @*E E E E E E E E E Er.   