
    _i                    <   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  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)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                  v    \ 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      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    i/var/www/html/land-ocr/venv/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3[        [           [	        UUUU[        UUS.[        R                  5      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 z/fine_tuning/jobs/z/checkpoints)r,   r-   )r.   r/   r0   r1   query)pageoptionsmodel)
ValueError_get_api_listr   r   r   r   r   CheckpointListParamsr!   fine_tuning_job_idr,   r-   r.   r/   r0   r1   s           r"   listCheckpoints.list,   s    : "`as`vwxx!! !3 4LA 78(+'%%!&!& +?? *! " 
 	
r%    )returnr   )r@   r(   )r<   strr,   
str | Omitr-   
int | Omitr.   Headers | Noner/   Query | Noner0   Body | Noner1   'float | httpx.Timeout | None | NotGivenr@   z'SyncCursorPage[FineTuningJobCheckpoint]__name__
__module____qualname____firstlineno__r   r#   r)   r   r   r=   __static_attributes__r?   r%   r"   r   r      s    0 0 6 6 !  )-$("&;D0
0
 	0

 0
 &0
 "0
  0
 90
 
10
 0
r%   c                  v    \ 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   _   c                    [        U 5      $ r   )AsyncCheckpointsWithRawResponser    s    r"   r#   "AsyncCheckpoints.with_raw_response`   s     /t44r%   c                    [        U 5      $ r'   )%AsyncCheckpointsWithStreamingResponser    s    r"   r)   (AsyncCheckpoints.with_streaming_responsej   s     5T::r%   Nr+   c                   U(       d  [        SU< 35      eU R                  SU S3[        [           [	        UUUU[        UUS.[        R                  5      S9[        S9$ r3   )r8   r9   r   r   r   r   r   r:   r;   s           r"   r=   AsyncCheckpoints.lists   s    : "`as`vwxx!! !3 4LA !89(+'%%!&!& +?? *! " 
 	
r%   r?   )r@   rQ   )r@   rT   )r<   rA   r,   rB   r-   rC   r.   rD   r/   rE   r0   rF   r1   rG   r@   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rH   r?   r%   r"   r   r   _   s    5 5 ; ; !  )-$("&;D0
0
 	0

 0
 &0
 "0
  0
 90
 
[0
 0
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_wrapperr=   r!   checkpointss     r"   __init__#CheckpointsWithRawResponse.__init__   s#    '$<<
	r%   r\   r=   Nr_   r   r@   NonerI   rJ   rK   rL   r`   rM   r?   r%   r"   r   r          
r%   r   c                      \ rS rSrSS jrSrg)rQ      c                Z    Xl         [        R                  " UR                  5      U l        g r[   )r\   r   async_to_raw_response_wrapperr=   r^   s     r"   r`   (AsyncCheckpointsWithRawResponse.__init__   s#    '$BB
	r%   rb   Nr_   r   r@   rd   re   r?   r%   r"   rQ   rQ      rf   r%   rQ   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[   )r\   r   r=   r^   s     r"   r`   )CheckpointsWithStreamingResponse.__init__   s    '0
	r%   rb   Nrc   re   r?   r%   r"   r(   r(      rf   r%   r(   c                      \ rS rSrSS jrSrg)rT      c                D    Xl         [        UR                  5      U l        g r[   )r\   r   r=   r^   s     r"   r`   .AsyncCheckpointsWithStreamingResponse.__init__   s    '6
	r%   rb   Nrl   re   r?   r%   r"   rT   rT      rf   r%   rT   )(
__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   rQ   r(   rT   r?   r%   r"   <module>r      s    #  ! L L L & ' ; Z : > Y,
-D
/ D
ND
' D
N
 

 

 

 
r%   