Skip to content

Commit 44fb10d

Browse files
Merge pull request #2373 from mrbullwinkle/mrb_01_17_2025_function_updates
[Azure OpenAI] Functions update
2 parents 58f9135 + 31bf085 commit 44fb10d

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

articles/ai-services/openai/how-to/function-calling.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: mbullwin #delegenz
77
ms.service: azure-ai-openai
88
ms.custom: devx-track-python
99
ms.topic: how-to
10-
ms.date: 06/28/2024
10+
ms.date: 01/17/2025
1111
manager: nitinme
1212
---
1313

@@ -29,24 +29,30 @@ At a high level you can break down working with functions into three steps:
2929

3030
### Parallel function calling
3131

32-
* `gpt-35-turbo` (1106)
33-
* `gpt-35-turbo` (0125)
34-
* `gpt-4` (1106-Preview)
35-
* `gpt-4` (0125-Preview)
36-
* `gpt-4` (vision-preview)
37-
* `gpt-4` (2024-04-09)
38-
* `gpt-4o` (2024-05-13)
39-
* `gpt-4o-mini` (2024-07-18)
32+
* `gpt-35-turbo` (`1106`)
33+
* `gpt-35-turbo` (`0125`)
34+
* `gpt-4` (`1106-Preview`)
35+
* `gpt-4` (`0125-Preview`)
36+
* `gpt-4` (`vision-preview`)
37+
* `gpt-4` (`2024-04-09`)
38+
* `gpt-4o` (`2024-05-13`)
39+
* `gpt-4o` (`2024-08-06`)
40+
* `gpt-4o` (`2024-11-20`)
41+
* `gpt-4o-mini` (`2024-07-18`)
4042

4143
Support for parallel function was first added in API version [`2023-12-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json)
4244

4345
### Basic function calling with tools
4446

4547
* All the models that support parallel function calling
46-
* `gpt-4` (0613)
47-
* `gpt-4-32k` (0613)
48-
* `gpt-35-turbo-16k` (0613)
49-
* `gpt-35-turbo` (0613)
48+
* `o1` (`2024-12-17`)
49+
* `gpt-4` (`0613`)
50+
* `gpt-4-32k` (`0613`)
51+
* `gpt-35-turbo-16k` (`0613`)
52+
* `gpt-35-turbo` (`0613`)
53+
54+
> [!IMPORTANT]
55+
> There is a known issue with the `o1` model and the `tool_choice` parameter. Currently function calls that include the optional `tool_choice` parameter will fail. This page will be updated once the issue is resolved. For more information on what parameters are supported with the o1-series models see, the [reasoning models guide](./reasoning.md).
5056
5157
## Single tool/function calling example
5258

@@ -225,7 +231,7 @@ For example in our simple time app we retrieved multiple times at the same time.
225231
To force the model to call a specific function set the `tool_choice` parameter with a specific function name. You can also force the model to generate a user-facing message by setting `tool_choice: "none"`.
226232

227233
> [!NOTE]
228-
> The default behavior (`tool_choice: "auto"`) is for the model to decide on its own whether to call a function and if so which function to call.
234+
> The default behavior (`tool_choice: "auto"`) is for the model to decide on its own if it should call a function and if so which function to call.
229235
230236
## Parallel function calling with multiple functions
231237

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Once access has been granted, you'll need to create a deployment for each model.
4848
| **[Context Window](../concepts/models.md#o1-and-o1-mini-models-limited-access)** | Input: 200,000 <br> Output: 100,000 | Input: 128,000 <br> Output: 32,768 | Input: 128,000 <br> Output: 65,536 |
4949
| **[Reasoning effort](#reasoning-effort)** || - | - |
5050
| System Messages | - | - | - |
51+
| Functions/Tools || - | - |
5152
| `max_completion_tokens` ||||
5253

5354
**o1 series** models will only work with the `max_completion_tokens` parameter.

0 commit comments

Comments
 (0)