
    _j                        S SK Jr  SSKJr  SSKJrJr  SSKJrJ	r	J
r
JrJrJr  SS/r " S	 S\5      r " S
 S\5      r " S S5      r " S S5      r " S S5      r " S S5      rg)    )annotations   )cached_property)SyncAPIResourceAsyncAPIResource   )CompletionsAsyncCompletionsCompletionsWithRawResponseAsyncCompletionsWithRawResponse CompletionsWithStreamingResponse%AsyncCompletionsWithStreamingResponseChat	AsyncChatc                  P    \ rS rSr\SS j5       r\SS j5       r\S	S j5       rSrg)
r      c                ,    [        U R                  5      $ zW
Given a list of messages comprising a conversation, the model will return a response.
)r	   _clientselfs    O/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/chat/chat.pycompletionsChat.completions   s    
 4<<((    c                    [        U 5      $ z
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_responseChat.with_raw_response   s     #4((r   c                    [        U 5      $ 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_responseChat.with_streaming_response%   s     )..r    N)returnr	   )r'   r   )r'   r#   	__name__
__module____qualname____firstlineno__r   r   r   r$   __static_attributes__r&   r   r   r   r      s<    ) ) ) ) / /r   c                  P    \ rS rSr\SS j5       r\SS j5       r\S	S j5       rSrg)
r   /   c                ,    [        U R                  5      $ r   )r
   r   r   s    r   r   AsyncChat.completions0   s    
  --r   c                    [        U 5      $ r   )AsyncChatWithRawResponser   s    r   r   AsyncChat.with_raw_response7   s     (--r   c                    [        U 5      $ r"   )AsyncChatWithStreamingResponser   s    r   r$   !AsyncChat.with_streaming_responseA   s     .d33r   r&   N)r'   r
   )r'   r3   )r'   r6   r(   r&   r   r   r   r   /   s<    . . . . 4 4r   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   K   c                    Xl         g N_chatr   chats     r   __init__ChatWithRawResponse.__init__L       
r   c                @    [        U R                  R                  5      $ r   )r   r=   r   r   s    r   r   ChatWithRawResponse.completionsO   s    
 *$***@*@AAr   r<   Nr?   r   r'   None)r'   r   r)   r*   r+   r,   r@   r   r   r-   r&   r   r   r   r   K   s     B Br   r   c                  2    \ rS rSrSS jr\SS j5       rSrg)r3   W   c                    Xl         g r;   r<   r>   s     r   r@   !AsyncChatWithRawResponse.__init__X   rB   r   c                @    [        U R                  R                  5      $ r   )r   r=   r   r   s    r   r   $AsyncChatWithRawResponse.completions[   s    
 /tzz/E/EFFr   r<   Nr?   r   r'   rF   )r'   r   rG   r&   r   r   r3   r3   W   s     G Gr   r3   c                  2    \ rS rSrSS jr\SS j5       rSrg)r#   c   c                    Xl         g r;   r<   r>   s     r   r@   "ChatWithStreamingResponse.__init__d   rB   r   c                @    [        U R                  R                  5      $ r   )r   r=   r   r   s    r   r   %ChatWithStreamingResponse.completionsg   s    
 0

0F0FGGr   r<   NrE   )r'   r   rG   r&   r   r   r#   r#   c   s     H Hr   r#   c                  2    \ rS rSrSS jr\SS j5       rSrg)r6   o   c                    Xl         g r;   r<   r>   s     r   r@   'AsyncChatWithStreamingResponse.__init__p   rB   r   c                @    [        U R                  R                  5      $ r   )r   r=   r   r   s    r   r   *AsyncChatWithStreamingResponse.completionss   s    
 5TZZ5K5KLLr   r<   NrN   )r'   r   rG   r&   r   r   r6   r6   o   s     M Mr   r6   N)
__future__r   _compatr   	_resourcer   r   completions.completionsr	   r
   r   r   r   r   __all__r   r   r   r3   r#   r6   r&   r   r   <module>r`      so    # & :  ;
/? /84  48	B 	B	G 	G	H 	H	M 	Mr   