o
    $i$                     @  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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)SyncAPIResourceAsyncAPIResource   )CompletionsAsyncCompletionsCompletionsWithRawResponseAsyncCompletionsWithRawResponse CompletionsWithStreamingResponse%AsyncCompletionsWithStreamingResponseChat	AsyncChatc                   @  6   e Z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/chat/chat.pycompletions      
zChat.completionsChatWithRawResponsec                 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Chat.with_raw_responseChatWithStreamingResponsec                 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
        )r    r   r   r   r   with_streaming_response"      zChat.with_streaming_responseN)r   r   )r   r   )r   r    __name__
__module____qualname__r   r   r   r"   r   r   r   r   r          	c                   @  r   )r   r   r	   c                 C  r   r   )r	   r   r   r   r   r   r   -   r   zAsyncChat.completionsAsyncChatWithRawResponsec                 C  r   r   )r)   r   r   r   r   r   1   r   zAsyncChat.with_raw_responseAsyncChatWithStreamingResponsec                 C  r   r!   )r*   r   r   r   r   r"   ;   r#   z!AsyncChat.with_streaming_responseN)r   r	   )r   r)   )r   r*   r$   r   r   r   r   r   ,   r(   c                   @  $   e Zd ZdddZeddd	Zd
S )r   chatr   r   Nonec                 C  
   || _ d S r   _chatr   r,   r   r   r   __init__F      
zChatWithRawResponse.__init__r
   c                 C     t | jjS r   )r
   r0   r   r   r   r   r   r   I      zChatWithRawResponse.completionsNr,   r   r   r-   )r   r
   r%   r&   r'   r2   r   r   r   r   r   r   r   E       
r   c                   @  r+   )r)   r,   r   r   r-   c                 C  r.   r   r/   r1   r   r   r   r2   O   r3   z!AsyncChatWithRawResponse.__init__r   c                 C  r4   r   )r   r0   r   r   r   r   r   r   R   r5   z$AsyncChatWithRawResponse.completionsNr,   r   r   r-   )r   r   r7   r   r   r   r   r)   N   r8   r)   c                   @  r+   )r    r,   r   r   r-   c                 C  r.   r   r/   r1   r   r   r   r2   X   r3   z"ChatWithStreamingResponse.__init__r   c                 C  r4   r   )r   r0   r   r   r   r   r   r   [   r5   z%ChatWithStreamingResponse.completionsNr6   )r   r   r7   r   r   r   r   r    W   r8   r    c                   @  r+   )r*   r,   r   r   r-   c                 C  r.   r   r/   r1   r   r   r   r2   a   r3   z'AsyncChatWithStreamingResponse.__init__r   c                 C  r4   r   )r   r0   r   r   r   r   r   r   d   r5   z*AsyncChatWithStreamingResponse.completionsNr9   )r   r   r7   r   r   r   r   r*   `   r8   r*   N)
__future__r   _compatr   	_resourcer   r   completions.completionsr   r	   r
   r   r   r   __all__r   r   r   r)   r    r*   r   r   r   r   <module>   s    				