Ë
    $Æ%h*  ã                  ó4  — 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%y)é    )ÚannotationsNé   )Ú_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)Ú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    úk/var/www/skyplay_api_hub/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   )r9   r$   )r7   Ústrr'   ústr | NotGivenr(   úint | NotGivenr)   úHeaders | Noner*   úQuery | Noner+   úBody | Noner,   ú'float | httpx.Timeout | None | NotGivenr9   z'SyncCursorPage[FineTuningJobCheckpoint]©Ú__name__Ú
__module__Ú__qualname__r   r    r%   r   r8   © 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 r.   )r3   r4   r   r   r   r   r   r5   r6   s           r   r8   zAsyncCheckpoints.lists   s‚   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!Ø Ð!3Ð 4°LÐAÜ Ô!8Ñ9Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óôô *ð! "ó 
ð 	
r!   )r9   rH   )r9   rJ   )r7   r:   r'   r;   r(   r<   r)   r=   r*   r>   r+   r?   r,   r@   r9   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rA   rE   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_wrapperr8   ©r   Úcheckpointss     r   Ú__init__z#CheckpointsWithRawResponse.__init__§   s%   € Ø'ˆÔä$×<Ñ<Ø×Ñó
ˆ�	r!   N©rR   r   r9   ÚNone©rB   rC   rD   rS   rE   r!   r   r   r   ¦   ó   „ ô
r!   r   c                  ó   — e Zd Zdd„Zy)rH   c                óZ   — || _         t        j                  |j                  «      | _        y rN   )rO   r   Úasync_to_raw_response_wrapperr8   rQ   s     r   rS   z(AsyncCheckpointsWithRawResponse.__init__°   s%   € Ø'ˆÔä$×BÑBØ×Ñó
ˆ�	r!   N©rR   r   r9   rU   rV   rE   r!   r   rH   rH   ¯   rW   r!   rH   c                  ó   — e Zd Zdd„Zy)r$   c                óF   — || _         t        |j                  «      | _        y rN   )rO   r   r8   rQ   s     r   rS   z)CheckpointsWithStreamingResponse.__init__¹   s   € Ø'ˆÔä0Ø×Ñó
ˆ�	r!   NrT   rV   rE   r!   r   r$   r$   ¸   rW   r!   r$   c                  ó   — e Zd Zdd„Zy)rJ   c                óF   — || _         t        |j                  «      | _        y rN   )rO   r   r8   rQ   s     r   rS   z.AsyncCheckpointsWithStreamingResponse.__init__Â   s   € Ø'ˆÔä6Ø×Ñó
ˆ�	r!   Nr[   rV   rE   r!   r   rJ   rJ   Á   rW   r!   rJ   )&Ú
__future__r   ÚhttpxÚ r   Ú_typesr   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   rH   r$   rJ   rE   r!   r   ú<module>rm      s„   ðõ #ã å !ß @Õ @Ý &Ý 'ß ;ß Zß :÷õ >Ý YàÐ,Ð
-€ôD
�/ô D
ôND
Ð'ô D
÷N
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r!   