
    qi                        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e      Z G d
 de      Z G d d      Z G d d      Z G d d      Z G d d      Zy)    )annotations   )cached_property)SyncAPIResourceAsyncAPIResource   )CompletionsAsyncCompletionsCompletionsWithRawResponseAsyncCompletionsWithRawResponse CompletionsWithStreamingResponse%AsyncCompletionsWithStreamingResponseChat	AsyncChatc                  B    e Zd Zedd       Zedd       Zedd       Zy)r   c                ,    t        | j                        S zg
        Given a list of messages comprising a conversation, the model will return a response.
        )r	   _clientselfs    L/opt/pipecat/venv/lib/python3.12/site-packages/openai/resources/chat/chat.pycompletionszChat.completions   s    
 4<<((    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
        )ChatWithRawResponser   s    r   with_raw_responsezChat.with_raw_response   s     #4((r   c                    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
        )ChatWithStreamingResponser   s    r   with_streaming_responsezChat.with_streaming_response%   s     )..r   N)returnr	   )r"   r   )r"   r    __name__
__module____qualname__r   r   r   r!    r   r   r   r      s<    ) ) ) ) / /r   c                  B    e Zd Zedd       Zedd       Zedd       Zy)r   c                ,    t        | j                        S r   )r
   r   r   s    r   r   zAsyncChat.completions0   s    
  --r   c                    t        |       S r   )AsyncChatWithRawResponser   s    r   r   zAsyncChat.with_raw_response7   s     (--r   c                    t        |       S r   )AsyncChatWithStreamingResponser   s    r   r!   z!AsyncChat.with_streaming_responseA   s     .d33r   N)r"   r
   )r"   r+   )r"   r-   r#   r'   r   r   r   r   /   s<    . . . . 4 4r   c                  &    e Zd ZddZedd       Zy)r   c                    || _         y N_chatr   chats     r   __init__zChatWithRawResponse.__init__L   	    
r   c                @    t        | j                  j                        S r   )r   r2   r   r   s    r   r   zChatWithRawResponse.completionsO   s    
 *$***@*@AAr   Nr4   r   r"   None)r"   r   r$   r%   r&   r5   r   r   r'   r   r   r   r   K   s     B Br   r   c                  &    e Zd ZddZedd       Zy)r+   c                    || _         y r0   r1   r3   s     r   r5   z!AsyncChatWithRawResponse.__init__X   r6   r   c                @    t        | j                  j                        S r   )r   r2   r   r   s    r   r   z$AsyncChatWithRawResponse.completions[   s    
 /tzz/E/EFFr   Nr4   r   r"   r9   )r"   r   r:   r'   r   r   r+   r+   W   s     G Gr   r+   c                  &    e Zd ZddZedd       Zy)r    c                    || _         y r0   r1   r3   s     r   r5   z"ChatWithStreamingResponse.__init__d   r6   r   c                @    t        | j                  j                        S r   )r   r2   r   r   s    r   r   z%ChatWithStreamingResponse.completionsg   s    
 0

0F0FGGr   Nr8   )r"   r   r:   r'   r   r   r    r    c   s     H Hr   r    c                  &    e Zd ZddZedd       Zy)r-   c                    || _         y r0   r1   r3   s     r   r5   z'AsyncChatWithStreamingResponse.__init__p   r6   r   c                @    t        | j                  j                        S r   )r   r2   r   r   s    r   r   z*AsyncChatWithStreamingResponse.completionss   s    
 5TZZ5K5KLLr   Nr>   )r"   r   r:   r'   r   r   r-   r-   o   s     M Mr   r-   N)
__future__r   _compatr   	_resourcer   r   completions.completionsr	   r
   r   r   r   r   __all__r   r   r   r+   r    r-   r'   r   r   <module>rJ      so    # & :  ;
/? /84  48	B 	B	G 	G	H 	H	M 	Mr   