o
    $i]                     @  s  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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 deZ#G dd deZ$G dd dZ%G dd dZ&G dd dZ'G dd dZ(dS )    )annotations   )cached_property   )
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ChatKitAsyncChatKitChatKitWithRawResponseAsyncChatKitWithRawResponseChatKitWithStreamingResponse!AsyncChatKitWithStreamingResponse)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)Chat	AsyncChat)RealtimeAsyncRealtimeBeta	AsyncBetac                   @  n   e Zd ZedddZedddZedd	d
ZedddZedddZedddZ	edddZ
dS )r   returnr   c                 C  
   t | jS N)r   _clientself r'   Z/var/www/html/flask_server/venv/lib/python3.10/site-packages/openai/resources/beta/beta.pychat)      
z	Beta.chatr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   realtime-   r*   zBeta.realtimer   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   chatkit1   r*   zBeta.chatkitr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   
assistants5   r*   zBeta.assistantsr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   threads9   r*   zBeta.threadsBetaWithRawResponsec                 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
        )r/   r%   r'   r'   r(   with_raw_response=      zBeta.with_raw_responseBetaWithStreamingResponsec                 C  r0   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%   r'   r'   r(   with_streaming_responseG      zBeta.with_streaming_responseN)r!   r   )r!   r   )r!   r   )r!   r   )r!   r   )r!   r/   )r!   r4   __name__
__module____qualname__r   r)   r+   r,   r-   r.   r2   r6   r'   r'   r'   r(   r   (       	c                   @  r    )r   r!   r   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r)   R   r*   zAsyncBeta.chatr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r+   V   r*   zAsyncBeta.realtimer   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r,   Z   r*   zAsyncBeta.chatkitr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r-   ^   r*   zAsyncBeta.assistantsr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r.   b   r*   zAsyncBeta.threadsAsyncBetaWithRawResponsec                 C  r0   r1   )r=   r%   r'   r'   r(   r2   f   r3   zAsyncBeta.with_raw_responseAsyncBetaWithStreamingResponsec                 C  r0   r5   )r>   r%   r'   r'   r(   r6   p   r7   z!AsyncBeta.with_streaming_responseN)r!   r   )r!   r   )r!   r   )r!   r   )r!   r   )r!   r=   )r!   r>   r8   r'   r'   r'   r(   r   Q   r<   c                   @  @   e Zd ZdddZeddd	ZedddZedddZdS )r/   betar   r!   Nonec                 C  
   || _ d S r#   _betar&   r@   r'   r'   r(   __init__{      
zBetaWithRawResponse.__init__r   c                 C     t | jjS r#   )r   rD   r,   r%   r'   r'   r(   r,   ~      zBetaWithRawResponse.chatkitr   c                 C  rH   r#   )r   rD   r-   r%   r'   r'   r(   r-      rI   zBetaWithRawResponse.assistantsr   c                 C  rH   r#   )r   rD   r.   r%   r'   r'   r(   r.      rI   zBetaWithRawResponse.threadsNr@   r   r!   rA   )r!   r   )r!   r   )r!   r   r9   r:   r;   rF   r   r,   r-   r.   r'   r'   r'   r(   r/   z       
r/   c                   @  r?   )r=   r@   r   r!   rA   c                 C  rB   r#   rC   rE   r'   r'   r(   rF      rG   z!AsyncBetaWithRawResponse.__init__r   c                 C  rH   r#   )r   rD   r,   r%   r'   r'   r(   r,      rI   z AsyncBetaWithRawResponse.chatkitr	   c                 C  rH   r#   )r	   rD   r-   r%   r'   r'   r(   r-      rI   z#AsyncBetaWithRawResponse.assistantsr   c                 C  rH   r#   )r   rD   r.   r%   r'   r'   r(   r.      rI   z AsyncBetaWithRawResponse.threadsNr@   r   r!   rA   )r!   r   )r!   r	   )r!   r   rK   r'   r'   r'   r(   r=      rL   r=   c                   @  r?   )r4   r@   r   r!   rA   c                 C  rB   r#   rC   rE   r'   r'   r(   rF      rG   z"BetaWithStreamingResponse.__init__r   c                 C  rH   r#   )r   rD   r,   r%   r'   r'   r(   r,      rI   z!BetaWithStreamingResponse.chatkitr
   c                 C  rH   r#   )r
   rD   r-   r%   r'   r'   r(   r-      rI   z$BetaWithStreamingResponse.assistantsr   c                 C  rH   r#   )r   rD   r.   r%   r'   r'   r(   r.      rI   z!BetaWithStreamingResponse.threadsNrJ   )r!   r   )r!   r
   )r!   r   rK   r'   r'   r'   r(   r4      rL   r4   c                   @  r?   )r>   r@   r   r!   rA   c                 C  rB   r#   rC   rE   r'   r'   r(   rF      rG   z'AsyncBetaWithStreamingResponse.__init__r   c                 C  rH   r#   )r   rD   r,   r%   r'   r'   r(   r,      rI   z&AsyncBetaWithStreamingResponse.chatkitr   c                 C  rH   r#   )r   rD   r-   r%   r'   r'   r(   r-      rI   z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  rH   r#   )r   rD   r.   r%   r'   r'   r(   r.      rI   z&AsyncBetaWithStreamingResponse.threadsNrM   )r!   r   )r!   r   )r!   r   rK   r'   r'   r'   r(   r>      rL   r>   N))
__future__r   _compatr   r-   r   r   r   r	   r
   r   	_resourcer   r   chatkit.chatkitr   r   r   r   r   r   threads.threadsr   r   r   r   r   r   resources.chatr   r   realtime.realtimer   r   __all__r   r   r/   r=   r4   r>   r'   r'   r'   r(   <module>   s      ))