
    R1i                        d dl mZ ddlmZ ddlmZmZmZmZm	Z	m
Z
 ddlmZmZ ddlmZmZmZmZmZ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)    )annotations   )cached_property   )Jobs	AsyncJobsJobsWithRawResponseAsyncJobsWithRawResponseJobsWithStreamingResponseAsyncJobsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)CheckpointsAsyncCheckpointsCheckpointsWithRawResponseAsyncCheckpointsWithRawResponse CheckpointsWithStreamingResponse%AsyncCheckpointsWithStreamingResponse
FineTuningAsyncFineTuningc                  T    e Zd Zedd       Zedd       Zedd       Zed	d       Zy)
r   c                ,    t        | j                        S N)r   _clientselfs    l/home/cursorai/projects/iching/venv/lib/python3.12/site-packages/openai/resources/fine_tuning/fine_tuning.pyjobszFineTuning.jobs   s    DLL!!    c                ,    t        | j                        S r   )r   r   r   s    r   checkpointszFineTuning.checkpoints    s    4<<((r   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
        )FineTuningWithRawResponser   s    r   with_raw_responsezFineTuning.with_raw_response$   s     )..r   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
        )FineTuningWithStreamingResponser   s    r   with_streaming_responsez"FineTuning.with_streaming_response.   s     /t44r   N)returnr   )r*   r   )r*   r$   )r*   r(   __name__
__module____qualname__r   r   r!   r%   r)    r   r   r   r      sP    " " ) ) / / 5 5r   c                  T    e Zd Zedd       Zedd       Zedd       Zed	d       Zy)
r   c                ,    t        | j                        S r   )r   r   r   s    r   r   zAsyncFineTuning.jobs9   s    &&r   c                ,    t        | j                        S r   )r   r   r   s    r   r!   zAsyncFineTuning.checkpoints=   s    --r   c                    t        |       S r#   )AsyncFineTuningWithRawResponser   s    r   r%   z!AsyncFineTuning.with_raw_responseA   s     .d33r   c                    t        |       S r'   )$AsyncFineTuningWithStreamingResponser   s    r   r)   z'AsyncFineTuning.with_streaming_responseK   s     4D99r   N)r*   r   )r*   r   )r*   r4   )r*   r6   r+   r/   r   r   r   r   8   sP    ' ' . . 4 4 : :r   c                  8    e Zd ZddZedd       Zedd       Zy)r$   c                    || _         y r   _fine_tuningr   fine_tunings     r   __init__z"FineTuningWithRawResponse.__init__V   
    'r   c                @    t        | j                  j                        S r   )r	   r:   r   r   s    r   r   zFineTuningWithRawResponse.jobsY   s    "4#4#4#9#9::r   c                @    t        | j                  j                        S r   )r   r:   r!   r   s    r   r!   z%FineTuningWithRawResponse.checkpoints]   s    )$*;*;*G*GHHr   Nr<   r   r*   None)r*   r	   )r*   r   r,   r-   r.   r=   r   r   r!   r/   r   r   r$   r$   U   s1    ( ; ; I Ir   r$   c                  8    e Zd ZddZedd       Zedd       Zy)r4   c                    || _         y r   r9   r;   s     r   r=   z'AsyncFineTuningWithRawResponse.__init__c   r>   r   c                @    t        | j                  j                        S r   )r
   r:   r   r   s    r   r   z#AsyncFineTuningWithRawResponse.jobsf   s    '(9(9(>(>??r   c                @    t        | j                  j                        S r   )r   r:   r!   r   s    r   r!   z*AsyncFineTuningWithRawResponse.checkpointsj   s    .t/@/@/L/LMMr   Nr<   r   r*   rB   )r*   r
   )r*   r   rC   r/   r   r   r4   r4   b   s3    ( @ @ N Nr   r4   c                  8    e Zd ZddZedd       Zedd       Zy)r(   c                    || _         y r   r9   r;   s     r   r=   z(FineTuningWithStreamingResponse.__init__p   r>   r   c                @    t        | j                  j                        S r   )r   r:   r   r   s    r   r   z$FineTuningWithStreamingResponse.jobss   s    ():):)?)?@@r   c                @    t        | j                  j                        S r   )r   r:   r!   r   s    r   r!   z+FineTuningWithStreamingResponse.checkpointsw   s    /0A0A0M0MNNr   NrA   )r*   r   )r*   r   rC   r/   r   r   r(   r(   o   s3    ( A A O Or   r(   c                  8    e Zd ZddZedd       Zedd       Zy)r6   c                    || _         y r   r9   r;   s     r   r=   z-AsyncFineTuningWithStreamingResponse.__init__}   r>   r   c                @    t        | j                  j                        S r   )r   r:   r   r   s    r   r   z)AsyncFineTuningWithStreamingResponse.jobs   s    -d.?.?.D.DEEr   c                @    t        | j                  j                        S r   )r   r:   r!   r   s    r   r!   z0AsyncFineTuningWithStreamingResponse.checkpoints   s    4T5F5F5R5RSSr   NrH   )r*   r   )r*   r   rC   r/   r   r   r6   r6   |   s3    ( F F T Tr   r6   N)
__future__r   _compatr   	jobs.jobsr   r   r	   r
   r   r   	_resourcer   r   checkpoints.checkpointsr   r   r   r   r   r   __all__r   r   r$   r4   r(   r6   r/   r   r   <module>rW      s|    # &  ;  *
+5 5::& ::
I 
I
N 
N
O 
O
T 
Tr   