o
    Rhf                     @  s   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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   )Chat	AsyncChat)
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)RealtimeAsyncRealtimeRealtimeWithRawResponseAsyncRealtimeWithRawResponseRealtimeWithStreamingResponse"AsyncRealtimeWithStreamingResponseBeta	AsyncBetac                   @  `   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	dS )r   returnr   c                 C  
   t | jS N)r   _clientself r%   \/home/air/sanwanet/backup_V2/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&   
assistants-   r(   zBeta.assistantsr   c                 C  r    r!   )r   r"   r#   r%   r%   r&   threads1   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_response5      zBeta.with_raw_responseBetaWithStreamingResponsec                 C  r-   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
        )r1   r#   r%   r%   r&   with_streaming_response?      zBeta.with_streaming_responseN)r   r   )r   r   )r   r   )r   r   )r   r,   )r   r1   
__name__
__module____qualname__r   r'   r)   r*   r+   r/   r3   r%   r%   r%   r&   r   $       	c                   @  r   )r   r   r   c                 C  r    r!   )r   r"   r#   r%   r%   r&   r'   J   r(   zAsyncBeta.chatr   c                 C  r    r!   )r   r"   r#   r%   r%   r&   r)   N   r(   zAsyncBeta.realtimer	   c                 C  r    r!   )r	   r"   r#   r%   r%   r&   r*   R   r(   zAsyncBeta.assistantsr   c                 C  r    r!   )r   r"   r#   r%   r%   r&   r+   V   r(   zAsyncBeta.threadsAsyncBetaWithRawResponsec                 C  r-   r.   )r:   r#   r%   r%   r&   r/   Z   r0   zAsyncBeta.with_raw_responseAsyncBetaWithStreamingResponsec                 C  r-   r2   )r;   r#   r%   r%   r&   r3   d   r4   z!AsyncBeta.with_streaming_responseN)r   r   )r   r   )r   r	   )r   r   )r   r:   )r   r;   r5   r%   r%   r%   r&   r   I   r9   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__o      
zBetaWithRawResponse.__init__r   c                 C     t | jjS r!   )r   rA   r)   r#   r%   r%   r&   r)   r      zBetaWithRawResponse.realtimer
   c                 C  rE   r!   )r
   rA   r*   r#   r%   r%   r&   r*   v   rF   zBetaWithRawResponse.assistantsr   c                 C  rE   r!   )r   rA   r+   r#   r%   r%   r&   r+   z   rF   zBetaWithRawResponse.threadsNr=   r   r   r>   )r   r   )r   r
   )r   r   r6   r7   r8   rC   r   r)   r*   r+   r%   r%   r%   r&   r,   n       
r,   c                   @  r<   )r:   r=   r   r   r>   c                 C  r?   r!   r@   rB   r%   r%   r&   rC      rD   z!AsyncBetaWithRawResponse.__init__r   c                 C  rE   r!   )r   rA   r)   r#   r%   r%   r&   r)      rF   z!AsyncBetaWithRawResponse.realtimer   c                 C  rE   r!   )r   rA   r*   r#   r%   r%   r&   r*      rF   z#AsyncBetaWithRawResponse.assistantsr   c                 C  rE   r!   )r   rA   r+   r#   r%   r%   r&   r+      rF   z AsyncBetaWithRawResponse.threadsNr=   r   r   r>   )r   r   )r   r   )r   r   rH   r%   r%   r%   r&   r:      rI   r:   c                   @  r<   )r1   r=   r   r   r>   c                 C  r?   r!   r@   rB   r%   r%   r&   rC      rD   z"BetaWithStreamingResponse.__init__r   c                 C  rE   r!   )r   rA   r)   r#   r%   r%   r&   r)      rF   z"BetaWithStreamingResponse.realtimer   c                 C  rE   r!   )r   rA   r*   r#   r%   r%   r&   r*      rF   z$BetaWithStreamingResponse.assistantsr   c                 C  rE   r!   )r   rA   r+   r#   r%   r%   r&   r+      rF   z!BetaWithStreamingResponse.threadsNrG   )r   r   )r   r   )r   r   rH   r%   r%   r%   r&   r1      rI   r1   c                   @  r<   )r;   r=   r   r   r>   c                 C  r?   r!   r@   rB   r%   r%   r&   rC      rD   z'AsyncBetaWithStreamingResponse.__init__r   c                 C  rE   r!   )r   rA   r)   r#   r%   r%   r&   r)      rF   z'AsyncBetaWithStreamingResponse.realtimer   c                 C  rE   r!   )r   rA   r*   r#   r%   r%   r&   r*      rF   z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  rE   r!   )r   rA   r+   r#   r%   r%   r&   r+      rF   z&AsyncBetaWithStreamingResponse.threadsNrJ   )r   r   )r   r   )r   r   rH   r%   r%   r%   r&   r;      rI   r;   N)&
__future__r   _compatr   	chat.chatr   r   r*   r   r	   r
   r   r   r   	_resourcer   r   threads.threadsr   r   r   r   r   r   realtime.realtimer   r   r   r   r   r   __all__r   r   r,   r:   r1   r;   r%   r%   r%   r&   <module>   s      	%%