@@ -97,31 +97,29 @@ export class FineTuning extends APIResource {
9797 }
9898
9999 /**
100- * List the events for a single fine-tuning job.
100+ * List the checkpoints for a single fine-tuning job.
101101 *
102102 * @example
103103 * ```ts
104- * const response = await client.fineTuning.listEvents('id');
104+ * const response = await client.fineTuning.listCheckpoints(
105+ * 'id',
106+ * );
105107 * ```
106108 */
107- listEvents ( id : string , options ?: RequestOptions ) : APIPromise < FineTuningListEventsResponse > {
108- return this . _client . get ( path `/fine-tunes/${ id } /events ` , options ) ;
109+ listCheckpoints ( id : string , options ?: RequestOptions ) : APIPromise < FineTuningListCheckpointsResponse > {
110+ return this . _client . get ( path `/fine-tunes/${ id } /checkpoints ` , options ) ;
109111 }
110112
111113 /**
112- * List the checkpoints for a single fine-tuning job.
114+ * List the events for a single fine-tuning job.
113115 *
114116 * @example
115117 * ```ts
116- * const response =
117- * await client.fineTuning.retrieveCheckpoints('id');
118+ * const response = await client.fineTuning.listEvents('id');
118119 * ```
119120 */
120- retrieveCheckpoints (
121- id : string ,
122- options ?: RequestOptions ,
123- ) : APIPromise < FineTuningRetrieveCheckpointsResponse > {
124- return this . _client . get ( path `/fine-tunes/${ id } /checkpoints` , options ) ;
121+ listEvents ( id : string , options ?: RequestOptions ) : APIPromise < FineTuningListEventsResponse > {
122+ return this . _client . get ( path `/fine-tunes/${ id } /events` , options ) ;
125123 }
126124}
127125
@@ -830,15 +828,11 @@ export interface FineTuningDownloadResponse {
830828 size ?: number ;
831829}
832830
833- export interface FineTuningListEventsResponse {
834- data : Array < FineTuneEvent > ;
831+ export interface FineTuningListCheckpointsResponse {
832+ data : Array < FineTuningListCheckpointsResponse . Data > ;
835833}
836834
837- export interface FineTuningRetrieveCheckpointsResponse {
838- data : Array < FineTuningRetrieveCheckpointsResponse . Data > ;
839- }
840-
841- export namespace FineTuningRetrieveCheckpointsResponse {
835+ export namespace FineTuningListCheckpointsResponse {
842836 export interface Data {
843837 checkpoint_type : string ;
844838
@@ -850,6 +844,10 @@ export namespace FineTuningRetrieveCheckpointsResponse {
850844 }
851845}
852846
847+ export interface FineTuningListEventsResponse {
848+ data : Array < FineTuneEvent > ;
849+ }
850+
853851export interface FineTuningCreateParams {
854852 /**
855853 * Name of the base model to run fine-tune job on
@@ -1035,8 +1033,8 @@ export declare namespace FineTuning {
10351033 type FineTuningDeleteResponse as FineTuningDeleteResponse ,
10361034 type FineTuningCancelResponse as FineTuningCancelResponse ,
10371035 type FineTuningDownloadResponse as FineTuningDownloadResponse ,
1036+ type FineTuningListCheckpointsResponse as FineTuningListCheckpointsResponse ,
10381037 type FineTuningListEventsResponse as FineTuningListEventsResponse ,
1039- type FineTuningRetrieveCheckpointsResponse as FineTuningRetrieveCheckpointsResponse ,
10401038 type FineTuningCreateParams as FineTuningCreateParams ,
10411039 type FineTuningDeleteParams as FineTuningDeleteParams ,
10421040 type FineTuningDownloadParams as FineTuningDownloadParams ,
0 commit comments