U
    ÷Ê	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                   @  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   ú[/var/www/html/apigroqsegura/apigroq/lib/python3.8/site-packages/groq/resources/chat/chat.pyÚcompletions   s    zChat.completionsÚChatWithRawResponsec                 C  s   t | ƒS r   )r   r   r   r   r   Úwith_raw_response   s    zChat.with_raw_responseÚChatWithStreamingResponsec                 C  s   t | ƒS r   )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   &   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__0   s    zChatWithRawResponse.__init__r
   r   c                 C  s   t | jjƒS r   )r
   r'   r   r   r   r   r   r   3   s    zChatWithRawResponse.completionsN©r   r   r    r)   r   r   r   r   r   r   r   /   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)   9   s    z!AsyncChatWithRawResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r'   r   r   r   r   r   r   <   s    z$AsyncChatWithRawResponse.completionsNr*   r   r   r   r   r!   8   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)   B   s    z"ChatWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r'   r   r   r   r   r   r   E   s    z%ChatWithStreamingResponse.completionsNr*   r   r   r   r   r   A   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)   K   s    z'AsyncChatWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r'   r   r   r   r   r   r   N   s    z*AsyncChatWithStreamingResponse.completionsNr*   r   r   r   r   r"   J   s   r"   N)Ú
__future__r   Ú_compatr   Z	_resourcer   r   r   r   r	   r
   r   r   r   Ú__all__r   r   r   r!   r   r"   r   r   r   r   Ú<module>   s    				