|
275 | 275 | },
|
276 | 276 | "ChatCompletionInputFunctionDefinition": {
|
277 | 277 | "type":"object",
|
278 |
| -"required": ["name"], |
| 278 | +"required": ["name","parameters"], |
279 | 279 | "properties": {
|
280 | 280 | "parameters": {},
|
281 | 281 | "description": {
|
|
291 | 291 | "ChatCompletionInputGrammarType": {
|
292 | 292 | "oneOf": [
|
293 | 293 | {
|
294 |
| -"$ref":"#/$defs/ChatCompletionInputResponseFormatText" |
| 294 | +"type":"object", |
| 295 | +"required": ["type","value"], |
| 296 | +"properties": { |
| 297 | +"type": { |
| 298 | +"type":"string", |
| 299 | +"enum": ["json"] |
| 300 | +}, |
| 301 | +"value": { |
| 302 | +"description":"A string that represents a [JSON Schema](https://json-schema.org/).\n\nJSON Schema is a declarative language that allows to annotate JSON documents\nwith types and descriptions." |
| 303 | +} |
| 304 | +} |
295 | 305 | },
|
296 | 306 | {
|
297 |
| -"$ref":"#/$defs/ChatCompletionInputResponseFormatJSONSchema" |
| 307 | +"type":"object", |
| 308 | +"required": ["type","value"], |
| 309 | +"properties": { |
| 310 | +"type": { |
| 311 | +"type":"string", |
| 312 | +"enum": ["regex"] |
| 313 | +}, |
| 314 | +"value": { |
| 315 | +"type":"string" |
| 316 | +} |
| 317 | +} |
298 | 318 | },
|
299 | 319 | {
|
300 |
| -"$ref":"#/$defs/ChatCompletionInputResponseFormatJSONObject" |
| 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 | +} |
301 | 331 | }
|
302 | 332 | ],
|
303 |
| -"title":"ChatCompletionInputGrammarType" |
304 |
| -}, |
305 |
| -"ChatCompletionInputResponseFormatText": { |
306 |
| -"type":"object", |
307 |
| -"required": ["type"], |
308 |
| -"properties": { |
309 |
| -"type": { |
310 |
| -"type":"string", |
311 |
| -"enum": ["text"] |
312 |
| -} |
313 |
| -}, |
314 |
| -"title":"ChatCompletionInputResponseFormatText" |
315 |
| -}, |
316 |
| -"ChatCompletionInputResponseFormatJSONSchema": { |
317 |
| -"type":"object", |
318 |
| -"required": ["type","json_schema"], |
319 |
| -"properties": { |
320 |
| -"type": { |
321 |
| -"type":"string", |
322 |
| -"enum": ["json_schema"] |
323 |
| -}, |
324 |
| -"json_schema": { |
325 |
| -"$ref":"#/$defs/ChatCompletionInputJsonSchemaConfig" |
326 |
| -} |
327 |
| -}, |
328 |
| -"title":"ChatCompletionInputResponseFormatJSONSchema" |
329 |
| -}, |
330 |
| -"ChatCompletionInputResponseFormatJSONObject": { |
331 |
| -"type":"object", |
332 |
| -"required": ["type"], |
333 |
| -"properties": { |
334 |
| -"type": { |
335 |
| -"type":"string", |
336 |
| -"enum": ["json_object"] |
337 |
| -} |
| 333 | +"discriminator": { |
| 334 | +"propertyName":"type" |
338 | 335 | },
|
339 |
| -"title":"ChatCompletionInputResponseFormatJSONObject" |
| 336 | +"title":"ChatCompletionInputGrammarType" |
340 | 337 | },
|
341 | 338 | "ChatCompletionInputJsonSchemaConfig": {
|
342 | 339 | "type":"object",
|
343 |
| -"required": ["name"], |
| 340 | +"required": ["schema"], |
344 | 341 | "properties": {
|
345 | 342 | "name": {
|
346 | 343 | "type":"string",
|
347 |
| -"description":"The name of the response format." |
348 |
| -}, |
349 |
| -"description": { |
350 |
| -"type":"string", |
351 |
| -"description":"A description of what the response format is for, used by the model to determine how to respond in the format.", |
| 344 | +"description":"Optional name identifier for the schema", |
352 | 345 | "nullable":true
|
353 | 346 | },
|
354 | 347 | "schema": {
|
355 |
| -"type":"object", |
356 |
| -"description":"The schema for the response format, described as a JSON Schema object. Learn how to build JSON schemas [here](https://json-schema.org/).", |
357 |
| -"nullable":true |
358 |
| -}, |
359 |
| -"strict": { |
360 |
| -"type":"boolean", |
361 |
| -"description":"Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field.", |
362 |
| -"nullable":true |
| 348 | +"description":"The actual JSON schema definition" |
363 | 349 | }
|
364 | 350 | },
|
365 | 351 | "title":"ChatCompletionInputJsonSchemaConfig"
|
|