Ë
    ²Œj  ã                  ó<  — 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
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'y)é    )ÚannotationsNé   )Ú_legacy_response)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úmaybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncCursorPageÚAsyncCursorPage)ÚAsyncPaginatorÚmake_request_options)Úcheckpoint_list_params)ÚFineTuningJobCheckpointÚCheckpointsÚAsyncCheckpointsc                  óf   — e Zd Zedd„«       Zedd„«       Zeedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   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
        )ÚCheckpointsWithRawResponse©Úselfs    úw/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/openai/resources/fine_tuning/jobs/checkpoints.pyÚwith_raw_responsezCheckpoints.with_raw_response   s   € ô *¨$Ó/Ð/ó    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
        )Ú CheckpointsWithStreamingResponser   s    r!   Úwith_streaming_responsez#Checkpoints.with_streaming_response#   s   € ô 0°Ó5Ð5r#   N©ÚafterÚlimitÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óÄ   — |st        d|›�«      ‚| j                  d|› d�t        t           t	        ||||t        ||dœt        j                  «      ¬«      t        ¬«      S ©aî  
        List checkpoints for a fine-tuning job.

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

          limit: Number of checkpoints to retrieve.

          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
        zAExpected a non-empty value for `fine_tuning_job_id` but received z/fine_tuning/jobs/z/checkpoints)r)   r*   )r+   r,   r-   r.   Úquery)ÚpageÚoptionsÚmodel)Ú
ValueErrorÚ_get_api_listr   r   r   r   r   ÚCheckpointListParams©r    Úfine_tuning_job_idr)   r*   r+   r,   r-   r.   s           r!   ÚlistzCheckpoints.list,   s‚   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!Ø Ð!3Ð 4°LÐAÜÔ 7Ñ8Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óôô *ð! "ó 
ð 	
r#   )Úreturnr   )r;   r&   )r9   Ústrr)   ú
str | Omitr*   ú
int | Omitr+   úHeaders | Noner,   úQuery | Noner-   úBody | Noner.   ú'float | httpx.Timeout | None | NotGivenr;   z'SyncCursorPage[FineTuningJobCheckpoint]©	Ú__name__Ú
__module__Ú__qualname__r   r"   r'   r   r   r:   © r#   r!   r   r      s‘   „ Øò0ó ð0ð ò6ó ð6ð !Ø ð )-Ø$(Ø"&Ø;Dñ0
àð0
ð ð	0
ð
 ð0
ð &ð0
ð "ð0
ð  ð0
ð 9ð0
ð 
1ô0
r#   c                  óf   — e Zd Zedd„«       Zedd„«       Zeedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   c                ó   — t        | «      S r   )ÚAsyncCheckpointsWithRawResponser   s    r!   r"   z"AsyncCheckpoints.with_raw_response`   s   € ô /¨tÓ4Ð4r#   c                ó   — t        | «      S r%   )Ú%AsyncCheckpointsWithStreamingResponser   s    r!   r'   z(AsyncCheckpoints.with_streaming_responsej   s   € ô 5°TÓ:Ð:r#   Nr(   c               óÄ   — |st        d|›�«      ‚| j                  d|› d�t        t           t	        ||||t        ||dœt        j                  «      ¬«      t        ¬«      S r0   )r5   r6   r   r   r   r   r   r7   r8   s           r!   r:   zAsyncCheckpoints.lists   s‚   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!Ø Ð!3Ð 4°LÐAÜ Ô!8Ñ9Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óôô *ð! "ó 
ð 	
r#   )r;   rJ   )r;   rL   )r9   r<   r)   r=   r*   r>   r+   r?   r,   r@   r-   rA   r.   rB   r;   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rC   rG   r#   r!   r   r   _   s’   „ Øò5ó ð5ð ò;ó ð;ð !Ø ð )-Ø$(Ø"&Ø;Dñ0
àð0
ð ð	0
ð
 ð0
ð &ð0
ð "ð0
ð  ð0
ð 9ð0
ð 
[ô0
r#   c                  ó   — e Zd Zdd„Zy)r   c                óZ   — || _         t        j                  |j                  «      | _        y ©N)Ú_checkpointsr   Úto_raw_response_wrapperr:   ©r    Úcheckpointss     r!   Ú__init__z#CheckpointsWithRawResponse.__init__§   s%   € Ø'ˆÔä$×<Ñ<Ø×Ñó
ˆ�	r#   N©rT   r   r;   ÚNone©rD   rE   rF   rU   rG   r#   r!   r   r   ¦   ó   „ ô
r#   r   c                  ó   — e Zd Zdd„Zy)rJ   c                óZ   — || _         t        j                  |j                  «      | _        y rP   )rQ   r   Úasync_to_raw_response_wrapperr:   rS   s     r!   rU   z(AsyncCheckpointsWithRawResponse.__init__°   s%   € Ø'ˆÔä$×BÑBØ×Ñó
ˆ�	r#   N©rT   r   r;   rW   rX   rG   r#   r!   rJ   rJ   ¯   rY   r#   rJ   c                  ó   — e Zd Zdd„Zy)r&   c                óF   — || _         t        |j                  «      | _        y rP   )rQ   r   r:   rS   s     r!   rU   z)CheckpointsWithStreamingResponse.__init__¹   s   € Ø'ˆÔä0Ø×Ñó
ˆ�	r#   NrV   rX   rG   r#   r!   r&   r&   ¸   rY   r#   r&   c                  ó   — e Zd Zdd„Zy)rL   c                óF   — || _         t        |j                  «      | _        y rP   )rQ   r   r:   rS   s     r!   rU   z.AsyncCheckpointsWithStreamingResponse.__init__Â   s   € Ø'ˆÔä6Ø×Ñó
ˆ�	r#   Nr]   rX   rG   r#   r!   rL   rL   Á   rY   r#   rL   )(Ú
__future__r   ÚhttpxÚ r   Ú_typesr   r   r   r	   r
   r   r   Ú_utilsr   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.fine_tuning.jobsr   Ú1types.fine_tuning.jobs.fine_tuning_job_checkpointr   Ú__all__r   r   r   rJ   r&   rL   rG   r#   r!   Ú<module>ro      s‡   ðõ #ã å !ß L× LÑ LÝ &Ý 'ß ;ß Zß :÷õ >Ý YàÐ,Ð
-€ôD
�/ô D
ôND
Ð'ô D
÷N
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r#   