@@ -180,6 +180,13 @@ type FineTuningJob struct {
180180 EstimatedFinish int64 `json:"estimated_finish,nullable"`
181181 // A list of integrations to enable for this fine-tuning job.
182182 Integrations []FineTuningJobWandbIntegrationObject `json:"integrations,nullable"`
183+ // Set of 16 key-value pairs that can be attached to an object. This can be useful
184+ // for storing additional information about the object in a structured format, and
185+ // querying for objects via API or the dashboard.
186+ //
187+ // Keys are strings with a maximum length of 64 characters. Values are strings with
188+ // a maximum length of 512 characters.
189+ Metadata shared.Metadata `json:"metadata,nullable"`
183190 // The method used for fine-tuning.
184191 Method FineTuningJobMethod `json:"method"`
185192 JSON fineTuningJobJSON `json:"-"`
@@ -204,6 +211,7 @@ type fineTuningJobJSON struct {
204211 ValidationFile apijson.Field
205212 EstimatedFinish apijson.Field
206213 Integrations apijson.Field
214+ Metadata apijson.Field
207215 Method apijson.Field
208216 raw string
209217 ExtraFields map [string ]apijson.Field
@@ -1087,6 +1095,13 @@ type FineTuningJobNewParams struct {
10871095 Hyperparameters param.Field [FineTuningJobNewParamsHyperparameters ] `json:"hyperparameters"`
10881096 // A list of integrations to enable for your fine-tuning job.
10891097 Integrations param.Field [[]FineTuningJobNewParamsIntegration ] `json:"integrations"`
1098+ // Set of 16 key-value pairs that can be attached to an object. This can be useful
1099+ // for storing additional information about the object in a structured format, and
1100+ // querying for objects via API or the dashboard.
1101+ //
1102+ // Keys are strings with a maximum length of 64 characters. Values are strings with
1103+ // a maximum length of 512 characters.
1104+ Metadata param.Field [shared.MetadataParam ] `json:"metadata"`
10901105 // The method used for fine-tuning.
10911106 Method param.Field [FineTuningJobNewParamsMethod ] `json:"method"`
10921107 // The seed controls the reproducibility of the job. Passing in the same seed and
@@ -1567,6 +1582,9 @@ type FineTuningJobListParams struct {
15671582 After param.Field [string ] `query:"after"`
15681583 // Number of fine-tuning jobs to retrieve.
15691584 Limit param.Field [int64 ] `query:"limit"`
1585+ // Optional metadata filter. To filter, use the syntax `metadata[k]=v`.
1586+ // Alternatively, set `metadata=null` to indicate no metadata.
1587+ Metadata param.Field [map [string ]string ] `query:"metadata"`
15701588}
15711589
15721590// URLQuery serializes [FineTuningJobListParams]'s query parameters as
0 commit comments