@@ -149,6 +149,11 @@ def create(
149
149
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
150
150
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
151
151
152
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
153
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
154
+ more in the
155
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
156
+
152
157
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
153
158
message the model generates is valid JSON.
154
159
@@ -347,6 +352,11 @@ def create(
347
352
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
348
353
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
349
354
355
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
356
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
357
+ more in the
358
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
359
+
350
360
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
351
361
message the model generates is valid JSON.
352
362
@@ -538,6 +548,11 @@ def create(
538
548
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
539
549
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
540
550
551
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
552
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
553
+ more in the
554
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
555
+
541
556
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
542
557
message the model generates is valid JSON.
543
558
@@ -805,6 +820,11 @@ async def create(
805
820
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
806
821
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
807
822
823
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
824
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
825
+ more in the
826
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
827
+
808
828
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
809
829
message the model generates is valid JSON.
810
830
@@ -1003,6 +1023,11 @@ async def create(
1003
1023
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
1004
1024
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
1005
1025
1026
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1027
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
1028
+ more in the
1029
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1030
+
1006
1031
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1007
1032
message the model generates is valid JSON.
1008
1033
@@ -1194,6 +1219,11 @@ async def create(
1194
1219
[GPT-4 Turbo](https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo) and
1195
1220
all GPT-3.5 Turbo models newer than `gpt-3.5-turbo-1106`.
1196
1221
1222
+ Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
1223
+ Outputs which guarantees the model will match your supplied JSON schema. Learn
1224
+ more in the
1225
+ [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1226
+
1197
1227
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the
1198
1228
message the model generates is valid JSON.
1199
1229
0 commit comments