
    _j                    @   S SK Jr  S SKrSSKJr  SSKJrJrJrJ	r	J
r
JrJr  SSKJrJr  SSKJr  SSKJrJr  SS	KJrJr  SS
KJrJr  SSKJrJr  SSKJr  SSK J!r!  SS/r" " S S\5      r# " S S\5      r$ " S S5      r% " S S5      r& " S S5      r' " S S5      r(g)    )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                  z    \ rS rSrSr\S	S j5       r\S
S j5       r\\SSS\	S.               SS jjr
Srg)r      IManage fine-tuning jobs to tailor a model to your specific training data.c                    [        U 5      $ z
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    b/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/fine_tuning/jobs/checkpoints.pywith_raw_responseCheckpoints.with_raw_response   s     *$//    c                    [        U 5      $ 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_response#Checkpoints.with_streaming_response%   s     055r'   Nafterlimitextra_headersextra_query
extra_bodytimeoutc                   U(       d  [        SU< 35      eU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      SS0S9[        S9$ 	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)r0   r1   r2   r3   querysecurity)pageoptionsmodel)	
ValueError_get_api_listr   r   r   r   r   r   CheckpointListParamsr#   r6   r.   r/   r0   r1   r2   r3   s           r$   listCheckpoints.list.   s    : "`as`vwxx!!Ncuv 78(+'%%!&!& +?? (. *# " 
 	
r'    )returnr!   )rD   r*   )r6   strr.   
str | Omitr/   
int | Omitr0   Headers | Noner1   Query | Noner2   Body | Noner3   'float | httpx.Timeout | None | NotGivenrD   z'SyncCursorPage[FineTuningJobCheckpoint]__name__
__module____qualname____firstlineno____doc__r   r%   r+   r   r   rA   __static_attributes__rC   r'   r$   r   r      s    S0 0 6 6 !  )-$("&;D1
1
 	1

 1
 &1
 "1
  1
 91
 
11
 1
r'   c                  z    \ rS rSrSr\S	S j5       r\S
S j5       r\\SSS\	S.               SS jjr
Srg)r   b   r   c                    [        U 5      $ r    )AsyncCheckpointsWithRawResponser"   s    r$   r%   "AsyncCheckpoints.with_raw_responsee   s     /t44r'   c                    [        U 5      $ r)   )%AsyncCheckpointsWithStreamingResponser"   s    r$   r+   (AsyncCheckpoints.with_streaming_responseo   s     5T::r'   Nr-   c                   U(       d  [        SU< 35      eU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      SS0S9[        S9$ r5   )	r=   r>   r   r   r   r   r   r   r?   r@   s           r$   rA   AsyncCheckpoints.listx   s    : "`as`vwxx!!Ncuv !89(+'%%!&!& +?? (. *# " 
 	
r'   rC   )rD   rV   )rD   rY   )r6   rE   r.   rF   r/   rG   r0   rH   r1   rI   r2   rJ   r3   rK   rD   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rL   rC   r'   r$   r   r   b   s    S5 5 ; ; !  )-$("&;D1
1
 	1

 1
 &1
 "1
  1
 91
 
[1
 1
r'   c                      \ rS rSrSS jrSrg)r!      c                Z    Xl         [        R                  " UR                  5      U l        g N)_checkpointsr   to_raw_response_wrapperrA   r#   checkpointss     r$   __init__#CheckpointsWithRawResponse.__init__   s#    '$<<
	r'   ra   rA   Nrd   r   rD   NonerM   rN   rO   rP   re   rR   rC   r'   r$   r!   r!          
r'   r!   c                      \ rS rSrSS jrSrg)rV      c                Z    Xl         [        R                  " UR                  5      U l        g r`   )ra   r   async_to_raw_response_wrapperrA   rc   s     r$   re   (AsyncCheckpointsWithRawResponse.__init__   s#    '$BB
	r'   rg   Nrd   r   rD   ri   rj   rC   r'   r$   rV   rV      rk   r'   rV   c                      \ rS rSrSS jrSrg)r*      c                D    Xl         [        UR                  5      U l        g r`   )ra   r   rA   rc   s     r$   re   )CheckpointsWithStreamingResponse.__init__   s    '0
	r'   rg   Nrh   rj   rC   r'   r$   r*   r*      rk   r'   r*   c                      \ rS rSrSS jrSrg)rY      c                D    Xl         [        UR                  5      U l        g r`   )ra   r   rA   rc   s     r$   re   .AsyncCheckpointsWithStreamingResponse.__init__   s    '6
	r'   rg   Nrq   rj   rC   r'   r$   rY   rY      rk   r'   rY   ))
__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!   rV   r*   rY   rC   r'   r$   <module>r      s    #  ! L L L 5 ' ; Z : > Y,
-G
/ G
TG
' G
T
 

 

 

 
r'   