o
    {$¶f&	  ã                   @  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   úP/var/www/html/dev/env/lib/python3.10/site-packages/openai/resources/chat/chat.pyÚcompletions   ó   
zChat.completionsÚChatWithRawResponsec                 C  ó   t | ƒS r   )r   r   r   r   r   Úwith_raw_response   ó   zChat.with_raw_responseÚChatWithStreamingResponsec                 C  r   r   )r   r   r   r   r   Úwith_streaming_response   r   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   &   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__0   ó   
zChatWithRawResponse.__init__r
   c                 C  ó   t | jjƒS r   )r
   r-   r   r   r   r   r   r   3   ó   zChatWithRawResponse.completionsN©r)   r   r   r*   )r   r
   ©r"   r#   r$   r/   r   r   r   r   r   r   r   /   ó    
r   c                   @  r(   )r&   r)   r   r   r*   c                 C  r+   r   r,   r.   r   r   r   r/   9   r0   z!AsyncChatWithRawResponse.__init__r   c                 C  r1   r   )r   r-   r   r   r   r   r   r   <   r2   z$AsyncChatWithRawResponse.completionsN©r)   r   r   r*   )r   r   r4   r   r   r   r   r&   8   r5   r&   c                   @  r(   )r   r)   r   r   r*   c                 C  r+   r   r,   r.   r   r   r   r/   B   r0   z"ChatWithStreamingResponse.__init__r   c                 C  r1   r   )r   r-   r   r   r   r   r   r   E   r2   z%ChatWithStreamingResponse.completionsNr3   )r   r   r4   r   r   r   r   r   A   r5   r   c                   @  r(   )r'   r)   r   r   r*   c                 C  r+   r   r,   r.   r   r   r   r/   K   r0   z'AsyncChatWithStreamingResponse.__init__r   c                 C  r1   r   )r   r-   r   r   r   r   r   r   N   r2   z*AsyncChatWithStreamingResponse.completionsNr6   )r   r   r4   r   r   r   r   r'   J   r5   r'   N)Ú
__future__r   Ú_compatr   Ú	_resourcer   r   r   r   r	   r
   r   r   r   Ú__all__r   r   r   r&   r   r'   r   r   r   r   Ú<module>   s    				