HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/openai/resources/chat/__pycache__/chat.cpython-310.pyc
o

���g$
�@s�ddlmZddlmZddlmZmZddlmZm	Z	m
Z
mZmZm
Z
ddgZGd	d�de�ZGd
d�de�ZGdd�d�ZGd
d�d�ZGdd�d�ZGdd�d�ZdS)�)�annotations�)�cached_property)�SyncAPIResource�AsyncAPIResource�)�Completions�AsyncCompletions�CompletionsWithRawResponse�AsyncCompletionsWithRawResponse� CompletionsWithStreamingResponse�%AsyncCompletionsWithStreamingResponse�Chat�	AsyncChatc@�6eZdZeddd��Zed
dd��Zedd	d
��ZdS)r�returnrcC�
t|j�S�N)r�_client��self�r�E/usr/local/lib/python3.10/dist-packages/openai/resources/chat/chat.py�completions�
zChat.completions�ChatWithRawResponsecC�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
        )rrrrr�with_raw_response�zChat.with_raw_response�ChatWithStreamingResponsecCr�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 rrrr�with_streaming_response"�zChat.with_streaming_responseN)rr)rr)rr ��__name__�
__module__�__qualname__rrrr"rrrrr�	c@r)rrr	cCrr)r	rrrrrr-rzAsyncChat.completions�AsyncChatWithRawResponsecCrr)r)rrrrr1rzAsyncChat.with_raw_response�AsyncChatWithStreamingResponsecCrr!)r*rrrrr";r#z!AsyncChat.with_streaming_responseN)rr	)rr))rr*r$rrrrr,r(c@�$eZdZddd�Zeddd	��Zd
S)
r�chatrr�NonecC�
||_dSr��_chat�rr,rrr�__init__F�
zChatWithRawResponse.__init__r
cC�t|jj�Sr)r
r0rrrrrrI�zChatWithRawResponse.completionsN�r,rrr-)rr
�r%r&r'r2rrrrrrrE�
rc@r+)
r)r,rrr-cCr.rr/r1rrrr2Or3z!AsyncChatWithRawResponse.__init__rcCr4r)rr0rrrrrrRr5z$AsyncChatWithRawResponse.completionsN�r,rrr-)rrr7rrrrr)Nr8r)c@r+)
r r,rrr-cCr.rr/r1rrrr2Xr3z"ChatWithStreamingResponse.__init__rcCr4r)rr0rrrrrr[r5z%ChatWithStreamingResponse.completionsNr6)rrr7rrrrr Wr8r c@r+)
r*r,rrr-cCr.rr/r1rrrr2ar3z'AsyncChatWithStreamingResponse.__init__r
cCr4r)r
r0rrrrrrdr5z*AsyncChatWithStreamingResponse.completionsNr9)rr
r7rrrrr*`r8r*N)�
__future__r�_compatr�	_resourcerr�completions.completionsrr	r
rrr
�__all__rrrr)r r*rrrr�<module>s