File tree 4 files changed +58
-2
lines changed
4 files changed +58
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export interface ChatCompletionInputGrammarType {
146
146
value : unknown ;
147
147
[ property : string ] : unknown ;
148
148
}
149
- export type ChatCompletionInputGrammarTypeType = "json" | "regex" ;
149
+ export type ChatCompletionInputGrammarTypeType = "json" | "regex" | "json_schema" ;
150
150
export interface ChatCompletionInputStreamOptions {
151
151
/**
152
152
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage
Original file line number Diff line number Diff line change 315
315
"type" : " string"
316
316
}
317
317
}
318
+ },
319
+ {
320
+ "type" : " object" ,
321
+ "required" : [" type" , " value" ],
322
+ "properties" : {
323
+ "type" : {
324
+ "type" : " string" ,
325
+ "enum" : [" json_schema" ]
326
+ },
327
+ "value" : {
328
+ "$ref" : " #/$defs/ChatCompletionInputJsonSchemaConfig"
329
+ }
330
+ }
318
331
}
319
332
],
320
333
"discriminator" : {
321
334
"propertyName" : " type"
322
335
},
323
336
"title" : " ChatCompletionInputGrammarType"
324
337
},
338
+ "ChatCompletionInputJsonSchemaConfig" : {
339
+ "type" : " object" ,
340
+ "required" : [" schema" ],
341
+ "properties" : {
342
+ "name" : {
343
+ "type" : " string" ,
344
+ "description" : " Optional name identifier for the schema" ,
345
+ "nullable" : true
346
+ },
347
+ "schema" : {
348
+ "description" : " The actual JSON schema definition"
349
+ }
350
+ },
351
+ "title" : " ChatCompletionInputJsonSchemaConfig"
352
+ },
325
353
"ChatCompletionInputStreamOptions" : {
326
354
"type" : " object" ,
327
355
"properties" : {
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export interface TextGenerationInputGrammarType {
109
109
value : unknown ;
110
110
[ property : string ] : unknown ;
111
111
}
112
- export type Type = "json" | "regex" ;
112
+ export type Type = "json" | "regex" | "json_schema" ;
113
113
/**
114
114
* Text Generation Output.
115
115
*
Original file line number Diff line number Diff line change 208
208
"type" : " string"
209
209
}
210
210
}
211
+ },
212
+ {
213
+ "type" : " object" ,
214
+ "required" : [" type" , " value" ],
215
+ "properties" : {
216
+ "type" : {
217
+ "type" : " string" ,
218
+ "enum" : [" json_schema" ]
219
+ },
220
+ "value" : {
221
+ "$ref" : " #/$defs/TextGenerationInputJsonSchemaConfig"
222
+ }
223
+ }
211
224
}
212
225
],
213
226
"discriminator" : {
214
227
"propertyName" : " type"
215
228
},
216
229
"title" : " TextGenerationInputGrammarType"
230
+ },
231
+ "TextGenerationInputJsonSchemaConfig" : {
232
+ "type" : " object" ,
233
+ "required" : [" schema" ],
234
+ "properties" : {
235
+ "name" : {
236
+ "type" : " string" ,
237
+ "description" : " Optional name identifier for the schema" ,
238
+ "nullable" : true
239
+ },
240
+ "schema" : {
241
+ "description" : " The actual JSON schema definition"
242
+ }
243
+ },
244
+ "title" : " TextGenerationInputJsonSchemaConfig"
217
245
}
218
246
}
219
247
}
You can’t perform that action at this time.
0 commit comments