a
    _ŠÝg$  ã                   @  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                   @  sB   e Zd Zeddœdd„ƒZeddœdd„ƒZeddœd	d
„ƒZdS )r   r   ©Úreturnc                 C  s
   t | jƒS ©N)r   Ú_client©Úself© r   úh/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/openai/resources/chat/chat.pyÚcompletions   s    zChat.completionsÚChatWithRawResponsec                 C  s   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   s    zChat.with_raw_responseÚChatWithStreamingResponsec                 C  s   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
        )r   r   r   r   r   Úwith_streaming_response"   s    zChat.with_streaming_responseN©Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r      s   	c                   @  sB   e Zd Zeddœdd„ƒZeddœdd„ƒZeddœd	d
„ƒZdS )r   r	   r   c                 C  s
   t | jƒS r   )r	   r   r   r   r   r   r   -   s    zAsyncChat.completionsÚAsyncChatWithRawResponsec                 C  s   t | ƒS r   )r#   r   r   r   r   r   1   s    zAsyncChat.with_raw_responseÚAsyncChatWithStreamingResponsec                 C  s   t | ƒS r   )r$   r   r   r   r   r   ;   s    z!AsyncChat.with_streaming_responseNr   r   r   r   r   r   ,   s   	c                   @  s.   e Zd Zdddœdd„Zeddœdd	„ƒZd
S )r   r   ÚNone©Úchatr   c                 C  s
   || _ d S r   ©Ú_chat©r   r'   r   r   r   Ú__init__F   s    zChatWithRawResponse.__init__r
   r   c                 C  s   t | jjƒS r   )r
   r)   r   r   r   r   r   r   I   s    zChatWithRawResponse.completionsN©r    r!   r"   r+   r   r   r   r   r   r   r   E   s   r   c                   @  s.   e Zd Zdddœdd„Zeddœdd	„ƒZd
S )r#   r   r%   r&   c                 C  s
   || _ d S r   r(   r*   r   r   r   r+   O   s    z!AsyncChatWithRawResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r)   r   r   r   r   r   r   R   s    z$AsyncChatWithRawResponse.completionsNr,   r   r   r   r   r#   N   s   r#   c                   @  s.   e Zd Zdddœdd„Zeddœdd	„ƒZd
S )r   r   r%   r&   c                 C  s
   || _ d S r   r(   r*   r   r   r   r+   X   s    z"ChatWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r)   r   r   r   r   r   r   [   s    z%ChatWithStreamingResponse.completionsNr,   r   r   r   r   r   W   s   r   c                   @  s.   e Zd Zdddœdd„Zeddœdd	„ƒZd
S )r$   r   r%   r&   c                 C  s
   || _ d S r   r(   r*   r   r   r   r+   a   s    z'AsyncChatWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r)   r   r   r   r   r   r   d   s    z*AsyncChatWithStreamingResponse.completionsNr,   r   r   r   r   r$   `   s   r$   N)Ú
__future__r   Z_compatr   Z	_resourcer   r   Zcompletions.completionsr   r	   r
   r   r   r   Ú__all__r   r   r   r#   r   r$   r   r   r   r   Ú<module>   s    				