
    OYhf8                    4   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
 ddl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)	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                  f    e Zd Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S N)CheckpointsWithRawResponseselfs    l/var/www/feuerwehr-webapp/venv/lib/python3.12/site-packages/openai/resources/fine_tuning/jobs/checkpoints.pywith_raw_responsezCheckpoints.with_raw_response   s    )$//    c                    t        |       S r   ) CheckpointsWithStreamingResponser   s    r   with_streaming_responsez#Checkpoints.with_streaming_response   s    /55r!   Nafterlimitextra_headersextra_query
extra_bodytimeoutc                   |st        d|      | j                  d| 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 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   listzCheckpoints.list!   s    : "`as`vwxx!! !3 4LA 78(+'%%!&!& +?? *! " 
 	
r!   )returnr   )r8   r#   )r6   strr&   str | NotGivenr'   int | NotGivenr(   Headers | Noner)   Query | Noner*   Body | Noner+   'float | httpx.Timeout | None | NotGivenr8   z'SyncCursorPage[FineTuningJobCheckpoint]__name__
__module____qualname__r   r    r$   r   r7    r!   r   r   r      s    0 0 6 6 !* ) )-$("&;D0
0
 	0

 0
 &0
 "0
  0
 90
 
10
r!   c                  f    e Zd Zedd       Zedd       Zeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S r   )AsyncCheckpointsWithRawResponser   s    r   r    z"AsyncCheckpoints.with_raw_responseU   s    .t44r!   c                    t        |       S r   )%AsyncCheckpointsWithStreamingResponser   s    r   r$   z(AsyncCheckpoints.with_streaming_responseY   s    4T::r!   Nr%   c                   |st        d|      | j                  d| dt        t           t	        ||||t        ||dt        j                              t              S r-   )r2   r3   r   r   r   r   r   r4   r5   s           r   r7   zAsyncCheckpoints.list]   s    : "`as`vwxx!! !3 4LA !89(+'%%!&!& +?? *! " 
 	
r!   )r8   rG   )r8   rI   )r6   r9   r&   r:   r'   r;   r(   r<   r)   r=   r*   r>   r+   r?   r8   zQAsyncPaginator[FineTuningJobCheckpoint, AsyncCursorPage[FineTuningJobCheckpoint]]r@   rD   r!   r   r   r   T   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 r   )_checkpointsr   to_raw_response_wrapperr7   r   checkpointss     r   __init__z#CheckpointsWithRawResponse.__init__   s%    '$<<
	r!   NrP   r   r8   NonerA   rB   rC   rQ   rD   r!   r   r   r          
r!   r   c                      e Zd ZddZy)rG   c                Z    || _         t        j                  |j                        | _        y r   )rM   r   async_to_raw_response_wrapperr7   rO   s     r   rQ   z(AsyncCheckpointsWithRawResponse.__init__   s%    '$BB
	r!   NrP   r   r8   rS   rT   rD   r!   r   rG   rG      rU   r!   rG   c                      e Zd ZddZy)r#   c                F    || _         t        |j                        | _        y r   )rM   r   r7   rO   s     r   rQ   z)CheckpointsWithStreamingResponse.__init__   s    '0
	r!   NrR   rT   rD   r!   r   r#   r#      rU   r!   r#   c                      e Zd ZddZy)rI   c                F    || _         t        |j                        | _        y r   )rM   r   r7   rO   s     r   rQ   z.AsyncCheckpointsWithStreamingResponse.__init__   s    '6
	r!   NrY   rT   rD   r!   r   rI   rI      rU   r!   rI   )&
__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   rG   r#   rI   rD   r!   r   <module>rk      s    #  ! @ @ & ' ; Z : > Y,
-9
/ 9
x9
' 9
x
 

 

 

 
r!   