
    
@gX                    f   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
 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 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   )ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse   )cached_property)Chat	AsyncChat)
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)VectorStoresAsyncVectorStoresVectorStoresWithRawResponse AsyncVectorStoresWithRawResponse!VectorStoresWithStreamingResponse&AsyncVectorStoresWithStreamingResponse)r   r   )r   r   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    N/var/www/piapp/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&   vector_storeszBeta.vector_stores+       DL)))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.threads3   s    t|$$$r(   BetaWithRawResponsec                     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
        )r0   r$   s    r&   with_raw_responsezBeta.with_raw_response7   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
        )r4   r$   s    r&   with_streaming_responsezBeta.with_streaming_responseA   s     )...r(   N)r    r   )r    r   )r    r   )r    r   )r    r0   )r    r4   
__name__
__module____qualname__r   r'   r*   r-   r/   r3   r7    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.chatL   s    &&&r(   r   c                *    t          | j                  S r"   )r   r#   r$   s    r&   r*   zAsyncBeta.vector_storesP   s     ...r(   r   c                *    t          | j                  S r"   )r   r#   r$   s    r&   r-   zAsyncBeta.assistantsT   s    t|,,,r(   r   c                *    t          | j                  S r"   )r   r#   r$   s    r&   r/   zAsyncBeta.threadsX   r+   r(   AsyncBetaWithRawResponsec                     t          |           S r2   )rB   r$   s    r&   r3   zAsyncBeta.with_raw_response\   s     (---r(   AsyncBetaWithStreamingResponsec                     t          |           S r6   )rD   r$   s    r&   r7   z!AsyncBeta.with_streaming_responsef   s     .d333r(   N)r    r   )r    r   )r    r   )r    r   )r    rB   )r    rD   r8   r<   r(   r&   r   r   K   s        ' ' ' _' / / / _/ - - - _- * * * _* . . . _. 4 4 4 _4 4 4r(   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r0   betar   r    Nonec                    || _         d S r"   _betar%   rG   s     r&   __init__zBetaWithRawResponse.__init__q       


r(   r   c                4    t          | j        j                  S r"   )r   rK   r*   r$   s    r&   r*   z!BetaWithRawResponse.vector_storest   s    *4:+CDDDr(   r   c                4    t          | j        j                  S r"   )r   rK   r-   r$   s    r&   r-   zBetaWithRawResponse.assistantsx   s    ()>???r(   r   c                4    t          | j        j                  S r"   )r   rK   r/   r$   s    r&   r/   zBetaWithRawResponse.threads|   s    %dj&8999r(   NrG   r   r    rH   )r    r   )r    r   )r    r   r9   r:   r;   rM   r   r*   r-   r/   r<   r(   r&   r0   r0   p   s            E E E _E @ @ @ _@ : : : _: : :r(   r0   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )rB   rG   r   r    rH   c                    || _         d S r"   rJ   rL   s     r&   rM   z!AsyncBetaWithRawResponse.__init__   rN   r(   r   c                4    t          | j        j                  S r"   )r   rK   r*   r$   s    r&   r*   z&AsyncBetaWithRawResponse.vector_stores   s    /
0HIIIr(   r   c                4    t          | j        j                  S r"   )r   rK   r-   r$   s    r&   r-   z#AsyncBetaWithRawResponse.assistants   s    -dj.CDDDr(   r   c                4    t          | j        j                  S r"   )r   rK   r/   r$   s    r&   r/   z AsyncBetaWithRawResponse.threads   s    *4:+=>>>r(   NrG   r   r    rH   )r    r   )r    r   )r    r   rS   r<   r(   r&   rB   rB      s            J J J _J E E E _E ? ? ? _? ? ?r(   rB   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )r4   rG   r   r    rH   c                    || _         d S r"   rJ   rL   s     r&   rM   z"BetaWithStreamingResponse.__init__   rN   r(   r   c                4    t          | j        j                  S r"   )r   rK   r*   r$   s    r&   r*   z'BetaWithStreamingResponse.vector_stores   s    01IJJJr(   r   c                4    t          | j        j                  S r"   )r   rK   r-   r$   s    r&   r-   z$BetaWithStreamingResponse.assistants   s    .tz/DEEEr(   r	   c                4    t          | j        j                  S r"   )r	   rK   r/   r$   s    r&   r/   z!BetaWithStreamingResponse.threads   s    +DJ,>???r(   NrR   )r    r   )r    r   )r    r	   rS   r<   r(   r&   r4   r4      s            K K K _K F F F _F @ @ @ _@ @ @r(   r4   c                  ^    e Zd ZddZedd            Zedd	            Zedd            ZdS )rD   rG   r   r    rH   c                    || _         d S r"   rJ   rL   s     r&   rM   z'AsyncBetaWithStreamingResponse.__init__   rN   r(   r   c                4    t          | j        j                  S r"   )r   rK   r*   r$   s    r&   r*   z,AsyncBetaWithStreamingResponse.vector_stores   s    5dj6NOOOr(   r   c                4    t          | j        j                  S r"   )r   rK   r-   r$   s    r&   r-   z)AsyncBetaWithStreamingResponse.assistants   s    3DJ4IJJJr(   r
   c                4    t          | j        j                  S r"   )r
   rK   r/   r$   s    r&   r/   z&AsyncBetaWithStreamingResponse.threads   s    01CDDDr(   NrY   )r    r   )r    r   )r    r
   rS   r<   r(   r&   rD   rD      s            P P P _P K K K _K E E E _E E Er(   rD   N)(
__future__r   r/   r   r   r   r   r	   r
   _compatr   	chat.chatr   r   r-   r   r   r   r   r   r   	_resourcer   r   r*   r   r   r   r   r   r   threads.threadsvector_stores.vector_stores__all__r   r   r0   rB   r4   rD   r<   r(   r&   <module>rk      s   # " " " " "                ' & & & & & & & & & & & & &                ; : : : : : : :                3 2 2 2 2 2 2 2 H H H H H H H H;
"/ "/ "/ "/ "/? "/ "/ "/J"4 "4 "4 "4 "4  "4 "4 "4J: : : : : : : :"? ? ? ? ? ? ? ?"@ @ @ @ @ @ @ @"E E E E E E E E E Er(   