
    h*                    4   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
  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)	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                  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    _/var/www/html/env/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-   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    listCheckpoints.list,   s    : "`as`vwxx!! !3 4LA 78(+'%%!&!& +?? *! " 
 	
r#    )returnr   )r>   r&   )r:   strr*   str | NotGivenr+   int | NotGivenr,   Headers | Noner-   Query | Noner.   Body | Noner/   'float | httpx.Timeout | None | NotGivenr>   z'SyncCursorPage[FineTuningJobCheckpoint]
__name__
__module____qualname____firstlineno__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$ r1   )r6   r7   r   r   r   r   r   r8   r9   s           r    r;   AsyncCheckpoints.lists   s    : "`as`vwxx!! !3 4LA !89(+'%%!&!& +?? *! " 
 	
r#   r=   )r>   rO   )r>   rR   )r:   r?   r*   r@   r+   rA   r,   rB   r-   rC   r.   rD   r/   rE   r>   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]rF   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#   rZ   r;   Nr]   r   r>   NonerG   rH   rI   rJ   r^   rK   r=   r#   r    r   r          
r#   r   c                      \ rS rSrSS jrSrg)rO      c                Z    Xl         [        R                  " UR                  5      U l        g rY   )rZ   r   async_to_raw_response_wrapperr;   r\   s     r    r^   (AsyncCheckpointsWithRawResponse.__init__   s#    '$BB
	r#   r`   Nr]   r   r>   rb   rc   r=   r#   r    rO   rO      rd   r#   rO   c                      \ rS rSrSS jrSrg)r&      c                D    Xl         [        UR                  5      U l        g rY   )rZ   r   r;   r\   s     r    r^   )CheckpointsWithStreamingResponse.__init__   s    '0
	r#   r`   Nra   rc   r=   r#   r    r&   r&      rd   r#   r&   c                      \ rS rSrSS jrSrg)rR      c                D    Xl         [        UR                  5      U l        g rY   )rZ   r   r;   r\   s     r    r^   .AsyncCheckpointsWithStreamingResponse.__init__   s    '6
	r#   r`   Nrj   rc   r=   r#   r    rR   rR      rd   r#   rR   )&
__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   rO   r&   rR   r=   r#   r    <module>r      s    #  ! @ @ & ' ; Z : > Y,
-D
/ D
ND
' D
N
 

 

 

 
r#   