feat(api): add o1 models (#1708) · openai/openai-python@2bfec1a

3 min read Original article ↗

@@ -167,11 +167,11 @@ def create(

167167

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

168168169169

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

170-

Outputs which guarantees the model will match your supplied JSON schema. Learn

171-

more in the

170+

Outputs which ensures the model will match your supplied JSON schema. Learn more

171+

in the

172172

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

173173174-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

174+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

175175

message the model generates is valid JSON.

176176177177

**Important:** when using JSON mode, you **must** also instruct the model to

@@ -311,11 +311,11 @@ def create(

311311

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

312312313313

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

314-

Outputs which guarantees the model will match your supplied JSON schema. Learn

315-

more in the

314+

Outputs which ensures the model will match your supplied JSON schema. Learn more

315+

in the

316316

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

317317318-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

318+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

319319

message the model generates is valid JSON.

320320321321

**Important:** when using JSON mode, you **must** also instruct the model to

@@ -451,11 +451,11 @@ def create(

451451

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

452452453453

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

454-

Outputs which guarantees the model will match your supplied JSON schema. Learn

455-

more in the

454+

Outputs which ensures the model will match your supplied JSON schema. Learn more

455+

in the

456456

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

457457458-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

458+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

459459

message the model generates is valid JSON.

460460461461

**Important:** when using JSON mode, you **must** also instruct the model to

@@ -1529,11 +1529,11 @@ async def create(

15291529

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

1530153015311531

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

1532-

Outputs which guarantees the model will match your supplied JSON schema. Learn

1533-

more in the

1532+

Outputs which ensures the model will match your supplied JSON schema. Learn more

1533+

in the

15341534

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

153515351536-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

1536+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

15371537

message the model generates is valid JSON.

1538153815391539

**Important:** when using JSON mode, you **must** also instruct the model to

@@ -1673,11 +1673,11 @@ async def create(

16731673

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

1674167416751675

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

1676-

Outputs which guarantees the model will match your supplied JSON schema. Learn

1677-

more in the

1676+

Outputs which ensures the model will match your supplied JSON schema. Learn more

1677+

in the

16781678

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

167916791680-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

1680+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

16811681

message the model generates is valid JSON.

1682168216831683

**Important:** when using JSON mode, you **must** also instruct the model to

@@ -1813,11 +1813,11 @@ async def create(

18131813

and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.

1814181418151815

Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured

1816-

Outputs which guarantees the model will match your supplied JSON schema. Learn

1817-

more in the

1816+

Outputs which ensures the model will match your supplied JSON schema. Learn more

1817+

in the

18181818

[Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).

181918191820-

Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the

1820+

Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the

18211821

message the model generates is valid JSON.

1822182218231823

**Important:** when using JSON mode, you **must** also instruct the model to