Ë
    Ìi5  ã                  ó@  — 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    ún/var/www/html/strategist-ai/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                  «      ¬«      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,   )r-   r.   r/   r0   Úquery)Ú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 | httpx.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ð !Ø ð )-Ø$(Ø"&Ø;Dñ0
àð0
ð ð	0
ð
 ð0
ð &ð0
ð "ð0
ð  ð0
ð 9ð0
ð 
1ô0
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_responsed   s   € ô /¨tÓ4Ð4r%   c                ó   — t        | «      S r'   )Ú%AsyncCheckpointsWithStreamingResponser!   s    r#   r)   z(AsyncCheckpoints.with_streaming_responsen   s   € ô 5°TÓ:Ð:r%   Nr*   c               óÒ   — |st        d|›�«      ‚| j                  t        d|¬«      t        t           t        ||||t        ||dœt        j                  «      ¬«      t        ¬«      S r2   )	r8   r9   r   r   r   r   r   r   r:   r;   s           r#   r<   zAsyncCheckpoints.listw   s€   € ñ: "ÜÐ`ÐasÐ`vÐwÓxÐxØ×!Ñ!ÜÐNÐcuÔvÜ Ô!8Ñ9Ü(Ø+Ø'Ø%ØÜ%à!&Ø!&ñô +×?Ñ?óôô *ð! "ó 
ð 	
r%   )r=   rM   )r=   rO   )r3   r>   r+   r?   r,   r@   r-   rA   r.   rB   r/   rC   r0   rD   r=   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rE   rJ   r%   r#   r   r   a   s•   „ Ù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©rW   r   r=   ÚNone©rF   rG   rH   rX   rJ   r%   r#   r    r    ª   ó   „ ô
r%   r    c                  ó   — e Zd Zdd„Zy)rM   c                óZ   — || _         t        j                  |j                  «      | _        y rS   )rT   r   Úasync_to_raw_response_wrapperr<   rV   s     r#   rX   z(AsyncCheckpointsWithRawResponse.__init__´   s%   € Ø'ˆÔä$×BÑBØ×Ñó
ˆ�	r%   N©rW   r   r=   rZ   r[   rJ   r%   r#   rM   rM   ³   r\   r%   rM   c                  ó   — e Zd Zdd„Zy)r(   c                óF   — || _         t        |j                  «      | _        y rS   )rT   r   r<   rV   s     r#   rX   z)CheckpointsWithStreamingResponse.__init__½   s   € Ø'ˆÔä0Ø×Ñó
ˆ�	r%   NrY   r[   rJ   r%   r#   r(   r(   ¼   r\   r%   r(   c                  ó   — e Zd Zdd„Zy)rO   c                óF   — || _         t        |j                  «      | _        y rS   )rT   r   r<   rV   s     r#   rX   z.AsyncCheckpointsWithStreamingResponse.__init__Æ   s   € Ø'ˆÔä6Ø×Ñó
ˆ�	r%   Nr`   r[   rJ   r%   r#   rO   rO   Å   r\   r%   rO   ))Ú
__future__r   ÚhttpxÚ 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    rM   r(   rO   rJ   r%   r#   ú<module>rr      s‡   ðõ #ã å !ß L× LÑ Lß 5Ý 'ß ;ß Zß :÷õ >Ý YàÐ,Ð
-€ôF
�/ô F
ôRF
Ð'ô F
÷R
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r%   