Skip to content

Commit 2ca83ba

Browse files
committed
update
1 parent 9c9185f commit 2ca83ba

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

articles/ai-services/openai/how-to/reasoning.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The latest most capable **o1 series** model is `o1` **Version: 2024-12-17**. Thi
4848

4949
### 2024-12-01-preview
5050

51-
`2024-12-01-preview` adds support for the new `reasoning_effort` parameter, structured outputs, and developer messages. The older preview reasoning models do not currently support these features. For reasoning models, these features are currently only available with `o1` **Version: 2024-12-17**.
51+
`2024-12-01-preview` adds support for the new `reasoning_effort` parameter, [structured outputs](./structured-outputs.md), and developer messages. The older preview reasoning models do not currently support these features. For reasoning models, these features are currently only available with `o1` **Version: 2024-12-17**.
5252

5353
## Usage
5454

@@ -221,11 +221,14 @@ print(response.model_dump_json(indent=2))
221221

222222

223223
> [!NOTE]
224-
> Reasoning models have `reasoning_tokens` as part of `completion_tokens_details` in the model response. These are hidden tokens that are not returned as part of the message response content but are used by the model to help generate a final answer your request. `2024-12-01-preview` adds an additional new parameter `reasoning_effort` which can be set to `low`, `medium`, or `high` with the latest `o1` model. The higher the effort setting, the longer the model will spend processing the request, which will generally result in a larger number of `reasoning_tokens`.
224+
> Reasoning models have `reasoning_tokens` as part of `completion_tokens_details` in the model response. These are hidden tokens that are not returned as part of the message response content but are used by the model to help generate a final answer to your request. `2024-12-01-preview` adds an additional new parameter `reasoning_effort` which can be set to `low`, `medium`, or `high` with the latest `o1` model. The higher the effort setting, the longer the model will spend processing the request, which will generally result in a larger number of `reasoning_tokens`.
225225
226226
## Developer messages
227227

228-
**System messages are not supported** with the **o1 series** reasoning models. `o1` **Version: 2024-12-17** with API version: `2024-12-01-preview` and later adds support for developer messages. Functionally developer messages ` "role": "developer"` are the same as system messages.
228+
Functionally developer messages ` "role": "developer"` are the same as system messages.
229+
230+
- **System messages are not supported** with the **o1 series** reasoning models.
231+
- `o1-2024-12-17` with API version: `2024-12-01-preview` and later adds support for developer messages.
229232

230233
Adding a developer message to the previous code example would look as follows:
231234

@@ -297,3 +300,4 @@ print(response.model_dump_json(indent=2))
297300
```
298301

299302
---
303+

articles/ai-services/openai/how-to/structured-outputs.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 11/20/2024
9+
ms.date: 12/17/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -19,10 +19,9 @@ Structured outputs make a model follow a [JSON Schema](https://json-schema.org/o
1919
> [!NOTE]
2020
> * Currently structured outputs is not supported on [bring your own data](../concepts/use-your-data.md) scenario.
2121
22-
23-
2422
## Supported models
2523

24+
- `o1` version: `2024-12-17`
2625
- `gpt-4o-mini` version: `2024-07-18`
2726
- `gpt-4o` version: `2024-08-06`
2827

0 commit comments

Comments
 (0)