@@ -4,7 +4,9 @@ import sttp.openai.OpenAIExceptions.OpenAIException.DeserializationOpenAIExcepti
4
4
import sttp .openai .json .SnakePickle
5
5
import ujson .Str
6
6
7
- /** @param id
7
+ /** The fine_tuning.job object represents a fine-tuning job that has been created through the API.
8
+ *
9
+ * @param id
8
10
* The object identifier, which can be referenced in the API endpoints.
9
11
* @param createdAt
10
12
* The Unix timestamp (in seconds) for when the fine-tuning job was created.
@@ -129,7 +131,9 @@ object ListFineTuningJobResponse {
129
131
implicit val listFineTuningResponseR : SnakePickle .Reader [ListFineTuningJobResponse ] = SnakePickle .macroR[ListFineTuningJobResponse ]
130
132
}
131
133
132
- /** @param `object`
134
+ /** Fine-tuning job event object
135
+ *
136
+ * @param `object`
133
137
* The object type, which is always "fine_tuning.job.event".
134
138
* @param id
135
139
* The object identifier.
@@ -168,3 +172,62 @@ object ListFineTuningJobEventResponse {
168
172
implicit val listFineTuningJobEventResponseR : SnakePickle .Reader [ListFineTuningJobEventResponse ] =
169
173
SnakePickle .macroR[ListFineTuningJobEventResponse ]
170
174
}
175
+
176
+ /** The fine_tuning.job.checkpoint object represents a model checkpoint for a fine-tuning job that is ready to use.
177
+ *
178
+ * @param id
179
+ * The checkpoint identifier, which can be referenced in the API endpoints.
180
+ * @param createdAt
181
+ * The Unix timestamp (in seconds) for when the checkpoint was created.
182
+ * @param fineTunedModelCheckpoint
183
+ * The name of the fine-tuned checkpoint model that is created.
184
+ * @param stepNumber
185
+ * The step number that the checkpoint was created at.
186
+ * @param metrics
187
+ * Metrics at the step number during the fine-tuning job.
188
+ * @param fineTuningJobId
189
+ * The name of the fine-tuning job that this checkpoint was created from.
190
+ * @param `object`
191
+ * The object type, which is always "fine_tuning.job.checkpoint".
192
+ */
193
+ case class FineTuningJobCheckpointResponse (
194
+ id : String ,
195
+ createdAt : Int ,
196
+ fineTunedModelCheckpoint : String ,
197
+ stepNumber : Int ,
198
+ metrics : Metrics ,
199
+ fineTuningJobId : String ,
200
+ `object` : String = " fine_tuning.job.checkpoint"
201
+ )
202
+
203
+ object FineTuningJobCheckpointResponse {
204
+ implicit val fineTuningJobCheckpointResponseR : SnakePickle .Reader [FineTuningJobCheckpointResponse ] =
205
+ SnakePickle .macroR[FineTuningJobCheckpointResponse ]
206
+ }
207
+
208
+ case class ListFineTuningJobCheckpointResponse (
209
+ `object` : String = " list" ,
210
+ data : Seq [FineTuningJobCheckpointResponse ],
211
+ firstId : String ,
212
+ lastId : String ,
213
+ hasMore : Boolean
214
+ )
215
+
216
+ object ListFineTuningJobCheckpointResponse {
217
+ implicit val listFineTuningJobCheckpointResponseR : SnakePickle .Reader [ListFineTuningJobCheckpointResponse ] =
218
+ SnakePickle .macroR[ListFineTuningJobCheckpointResponse ]
219
+ }
220
+
221
+ case class Metrics (
222
+ step : Float ,
223
+ trainLoss : Float ,
224
+ trainMeanTokenAccuracy : Float ,
225
+ validLoss : Float ,
226
+ validMeanTokenAccuracy : Float ,
227
+ fullValidLoss : Float ,
228
+ fullValidMeanTokenAccuracy : Float
229
+ )
230
+
231
+ object Metrics {
232
+ implicit val metricsR : SnakePickle .Reader [Metrics ] = SnakePickle .macroR[Metrics ]
233
+ }
0 commit comments