Ë
    îO´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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)Úpath_templateÚ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                  ój   — e Zd ZdZedd„«       Zedd„«       Zeedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d	d„Z	y)
r   úIManage fine-tuning jobs to tailor a model to your specific training data.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    ú„/var/www/origus_pro_usr/data/www/origus.pro/core/.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                  t        d|¬«      t        t           t        ||||t        ||dœt        j                  «      ddi¬«      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 z2/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints)Úfine_tuning_job_id)r+   r,   Úbearer_authT)r-   r.   r/   r0   ÚqueryÚsecurity)ÚpageÚoptionsÚmodel)	Ú
ValueErrorÚ_get_api_listr   r   r   r   r   r   ÚCheckpointListParams©r"   r3   r+   r,   r-   r.   r/   r0   s           r#   ÚlistzCheckpoints.list+   sŠ   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!ÜÐNÐcuÔvÜÔ 7Ñ8Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óð (¨Ð.ôô *ð# "ó 
ð 	
r%   )Úreturnr    )r?   r(   )r3   Ústrr+   ú
str | Omitr,   ú
int | Omitr-   úHeaders | Noner.   úQuery | Noner/   úBody | Noner0   ú(float | httpx2.Timeout | None | NotGivenr?   z'SyncCursorPage[FineTuningJobCheckpoint]©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r$   r)   r   r   r>   © r%   r#   r   r      s”   „ ÙSàò0ó ð0ð ò6ó ð6ð !Ø ð )-Ø$(Ø"&Ø<Eñ1
àð1
ð ð	1
ð
 ð1
ð &ð1
ð "ð1
ð  ð1
ð :ð1
ð 
1ô1
r%   c                  ój   — e Zd ZdZedd„«       Zedd„«       Zeedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d	d„Z	y)
r   r   c                ó   — t        | «      S r   )ÚAsyncCheckpointsWithRawResponser!   s    r#   r$   z"AsyncCheckpoints.with_raw_responseb   s   € ô /¨tÓ4Ð4r%   c                ó   — t        | «      S r'   )Ú%AsyncCheckpointsWithStreamingResponser!   s    r#   r)   z(AsyncCheckpoints.with_streaming_responsel   s   € ô 5°TÓ:Ð:r%   Nr*   c               óØ   — |st        d|›�«      ‚| j                  t        d|¬«      t        t           t        ||||t        ||dœt        j                  «      ddi¬«      t        ¬«      S r2   )	r:   r;   r   r   r   r   r   r   r<   r=   s           r#   r>   zAsyncCheckpoints.listu   sŠ   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!ÜÐNÐcuÔvÜ Ô!8Ñ9Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óð (¨Ð.ôô *ð# "ó 
ð 	
r%   )r?   rO   )r?   rQ   )r3   r@   r+   rA   r,   rB   r-   rC   r.   rD   r/   rE   r0   rF   r?   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rG   rL   r%   r#   r   r   _   s•   „ ÙSàò5ó ð5ð ò;ó ð;ð !Ø ð )-Ø$(Ø"&Ø<Eñ1
àð1
ð ð	1
ð
 ð1
ð &ð1
ð "ð1
ð  ð1
ð :ð1
ð 
[ô1
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©rY   r   r?   ÚNone©rH   rI   rJ   rZ   rL   r%   r#   r    r    ©   ó   „ ô
r%   r    c                  ó   — e Zd Zdd„Zy)rO   c                óZ   — || _         t        j                  |j                  «      | _        y rU   )rV   r   Úasync_to_raw_response_wrapperr>   rX   s     r#   rZ   z(AsyncCheckpointsWithRawResponse.__init__³   s%   € Ø'ˆÔä$×BÑBØ×Ñó
ˆ�	r%   N©rY   r   r?   r\   r]   rL   r%   r#   rO   rO   ²   r^   r%   rO   c                  ó   — e Zd Zdd„Zy)r(   c                óF   — || _         t        |j                  «      | _        y rU   )rV   r   r>   rX   s     r#   rZ   z)CheckpointsWithStreamingResponse.__init__¼   s   € Ø'ˆÔä0Ø×Ñó
ˆ�	r%   Nr[   r]   rL   r%   r#   r(   r(   »   r^   r%   r(   c                  ó   — e Zd Zdd„Zy)rQ   c                óF   — || _         t        |j                  «      | _        y rU   )rV   r   r>   rX   s     r#   rZ   z.AsyncCheckpointsWithStreamingResponse.__init__Å   s   € Ø'ˆÔä6Ø×Ñó
ˆ�	r%   Nrb   r]   rL   r%   r#   rQ   rQ   Ä   r^   r%   rQ   ))Ú
__future__r   Úhttpx2Ú r   Ú_typesr   r   r   r	   r
   r   r   Ú_utilsr   r   Ú_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    rO   r(   rQ   rL   r%   r#   ú<module>rt      sƒ   ðõ #ã å !ß L× LÑ Lß 5Ý 'ß ;ß Zß :ß AÝ =Ý YàÐ,Ð
-€ôG
�/ô G
ôTG
Ð'ô G
÷T
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r%   