§
    ÒÁ³gt  ã                  óf  — d dl mZ d dlmZ d dlZddlmZ ddlmZm	Z	m
Z
mZmZ ddlmZ ddlmZ dd	lmZmZ dd
lmZmZ ddlmZmZ ddlmZmZ ddlmZ ddl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'dS )é    )Úannotations)ÚLiteralNé   )Ú_legacy_response)Ú	NOT_GIVENÚBodyÚQueryÚHeadersÚNotGiven)Úmaybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncCursorPageÚAsyncCursorPage)ÚAsyncPaginatorÚmake_request_options)Úmessage_list_params)ÚChatCompletionStoreMessageÚMessagesÚAsyncMessagesc                  óX   — e Zd Zedd„¦   «         Zedd„¦   «         Zeeedddedœdd„ZdS )r   ÚreturnÚMessagesWithRawResponsec                ó    — 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   ©Úselfs    úh/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/openai/resources/chat/completions/messages.pyÚwith_raw_responsezMessages.with_raw_response   s   € õ ' tÑ,Ô,Ð,ó    ÚMessagesWithStreamingResponsec                ó    — 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   s    r!   Úwith_streaming_responsez Messages.with_streaming_response"   s   € õ -¨TÑ2Ô2Ð2r#   N©ÚafterÚlimitÚorderÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚcompletion_idÚstrr)   ústr | NotGivenr*   úint | NotGivenr+   ú!Literal['asc', 'desc'] | NotGivenr,   úHeaders | Noner-   úQuery | Noner.   úBody | Noner/   ú'float | httpx.Timeout | None | NotGivenú*SyncCursorPage[ChatCompletionStoreMessage]c               óê   — |st          d|›�¦  «        ‚|                      d|› d�t          t                   t	          ||||t          |||dœt          j        ¦  «        ¬¦  «        t          ¬¦  «        S ©aò  Get the messages in a stored chat completion.

        Only chat completions that have
        been created with the `store` parameter set to `true` will be returned.

        Args:
          after: Identifier for the last message from the previous pagination request.

          limit: Number of messages to retrieve.

          order: Sort order for messages by timestamp. Use `asc` for ascending order or `desc`
              for descending order. Defaults to `asc`.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        z<Expected a non-empty value for `completion_id` but received z/chat/completions/z	/messages)r)   r*   r+   )r,   r-   r.   r/   Úquery)ÚpageÚoptionsÚmodel)Ú
ValueErrorÚ_get_api_listr   r   r   r   r   ÚMessageListParams©	r    r0   r)   r*   r+   r,   r-   r.   r/   s	            r!   ÚlistzMessages.list+   s¥   € ðF ð 	oÝÐmÐ\iÐmÐmÑnÔnÐnØ×!Ò!Ø9 Ð9Ð9Ð9ÝÕ :Ô;Ý(Ø+Ø'Ø%ØÝ%à!&Ø!&Ø!&ðð õ
 (Ô9ñô ðñ ô õ -ð# "ñ 
ô 
ð 	
r#   )r   r   )r   r$   )r0   r1   r)   r2   r*   r3   r+   r4   r,   r5   r-   r6   r.   r7   r/   r8   r   r9   ©Ú__name__Ú
__module__Ú__qualname__r   r"   r'   r   rD   © r#   r!   r   r      s‰   € € € € € Øð-ð -ð -ñ „_ð-ð ð3ð 3ð 3ñ „_ð3ð !*Ø )Ø3<ð )-Ø$(Ø"&Ø;Dð7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
r#   c                  óX   — e Zd Zedd„¦   «         Zedd„¦   «         Zeeedddedœdd„ZdS )r   r   ÚAsyncMessagesWithRawResponsec                ó    — t          | ¦  «        S r   )rK   r   s    r!   r"   zAsyncMessages.with_raw_responsef   s   € õ ,¨DÑ1Ô1Ð1r#   Ú"AsyncMessagesWithStreamingResponsec                ó    — t          | ¦  «        S r&   )rM   r   s    r!   r'   z%AsyncMessages.with_streaming_responsep   s   € õ 2°$Ñ7Ô7Ð7r#   Nr(   r0   r1   r)   r2   r*   r3   r+   r4   r,   r5   r-   r6   r.   r7   r/   r8   úWAsyncPaginator[ChatCompletionStoreMessage, AsyncCursorPage[ChatCompletionStoreMessage]]c               óê   — |st          d|›�¦  «        ‚|                      d|› d�t          t                   t	          ||||t          |||dœt          j        ¦  «        ¬¦  «        t          ¬¦  «        S r;   )r@   rA   r   r   r   r   r   rB   rC   s	            r!   rD   zAsyncMessages.listy   s¥   € ðF ð 	oÝÐmÐ\iÐmÐmÑnÔnÐnØ×!Ò!Ø9 Ð9Ð9Ð9Ý Õ!;Ô<Ý(Ø+Ø'Ø%ØÝ%à!&Ø!&Ø!&ðð õ
 (Ô9ñô ðñ ô õ -ð# "ñ 
ô 
ð 	
r#   )r   rK   )r   rM   )r0   r1   r)   r2   r*   r3   r+   r4   r,   r5   r-   r6   r.   r7   r/   r8   r   rO   rE   rI   r#   r!   r   r   e   s‰   € € € € € Øð2ð 2ð 2ñ „_ð2ð ð8ð 8ð 8ñ „_ð8ð !*Ø )Ø3<ð )-Ø$(Ø"&Ø;Dð7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
r#   c                  ó   — e Zd Zdd„ZdS )r   Úmessagesr   r   ÚNonec                óP   — || _         t          j        |j        ¦  «        | _        d S ©N)Ú	_messagesr   Úto_raw_response_wrapperrD   ©r    rR   s     r!   Ú__init__z MessagesWithRawResponse.__init__´   s&   € Ø!ˆŒå$Ô<ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r#   N©rR   r   r   rS   ©rF   rG   rH   rY   rI   r#   r!   r   r   ³   ó(   € € € € € ð
ð 
ð 
ð 
ð 
ð 
r#   r   c                  ó   — e Zd Zdd„ZdS )rK   rR   r   r   rS   c                óP   — || _         t          j        |j        ¦  «        | _        d S rU   )rV   r   Úasync_to_raw_response_wrapperrD   rX   s     r!   rY   z%AsyncMessagesWithRawResponse.__init__½   s&   € Ø!ˆŒå$ÔBØŒMñ
ô 
ˆŒ	ˆ	ˆ	r#   N©rR   r   r   rS   r[   rI   r#   r!   rK   rK   ¼   r\   r#   rK   c                  ó   — e Zd Zdd„ZdS )r$   rR   r   r   rS   c                óF   — || _         t          |j        ¦  «        | _        d S rU   )rV   r   rD   rX   s     r!   rY   z&MessagesWithStreamingResponse.__init__Æ   s#   € Ø!ˆŒå0ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r#   NrZ   r[   rI   r#   r!   r$   r$   Å   r\   r#   r$   c                  ó   — e Zd Zdd„ZdS )rM   rR   r   r   rS   c                óF   — || _         t          |j        ¦  «        | _        d S rU   )rV   r   rD   rX   s     r!   rY   z+AsyncMessagesWithStreamingResponse.__init__Ï   s#   € Ø!ˆŒå6ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r#   Nr`   r[   rI   r#   r!   rM   rM   Î   r\   r#   rM   )(Ú
__future__r   Útyping_extensionsr   ÚhttpxÚ r   Ú_typesr   r   r	   r
   r   Ú_utilsr   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.chat.completionsr   Ú(types.chat.chat_completion_store_messager   Ú__all__r   r   r   rK   r$   rM   rI   r#   r!   ú<module>rs      s3  ðð #Ð "Ð "Ð "Ð "Ð "à %Ð %Ð %Ð %Ð %Ð %à €€€à !Ð !Ð !Ð !Ð !Ð !Ø @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ð @Ø &Ð &Ð &Ð &Ð &Ð &Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZØ :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ø AÐ AÐ AÐ AÐ AÐ AÐ AÐ AØ :Ð :Ð :Ð :Ð :Ð :Ø SÐ SÐ SÐ SÐ SÐ Sà�Ð
'€ðK
ð K
ð K
ð K
ð K
ˆñ K
ô K
ð K
ð\K
ð K
ð K
ð K
ð K
Ð$ñ K
ô K
ð K
ð\
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r#   