@@ -314,6 +314,11 @@ def create_and_run(
314
314
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
315
315
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
316
316
317
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
318
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
319
+ more in the
320
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
321
+
317
322
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
318
323
message the model generates is valid JSON.
319
324
@@ -443,6 +448,11 @@ def create_and_run(
443
448
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
444
449
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
445
450
451
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
452
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
453
+ more in the
454
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
455
+
446
456
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
447
457
message the model generates is valid JSON.
448
458
@@ -568,6 +578,11 @@ def create_and_run(
568
578
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
569
579
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
570
580
581
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
582
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
583
+ more in the
584
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
585
+
571
586
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
572
587
message the model generates is valid JSON.
573
588
@@ -942,6 +957,11 @@ async def create_and_run(
942
957
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
943
958
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
944
959
960
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
961
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
962
+ more in the
963
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
964
+
945
965
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
946
966
message the model generates is valid JSON.
947
967
@@ -1071,6 +1091,11 @@ async def create_and_run(
1071
1091
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
1072
1092
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1073
1093
1094
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1095
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
1096
+ more in the
1097
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1098
+
1074
1099
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1075
1100
message the model generates is valid JSON.
1076
1101
@@ -1196,6 +1221,11 @@ async def create_and_run(
1196
1221
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4),
1197
1222
and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
1198
1223
1224
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1225
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
1226
+ more in the
1227
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1228
+
1199
1229
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1200
1230
message the model generates is valid JSON.
1201
1231
0 commit comments