You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/how-to/function-calling.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.author: mbullwin #delegenz
7
7
ms.service: azure-ai-openai
8
8
ms.custom: devx-track-python
9
9
ms.topic: how-to
10
-
ms.date: 06/28/2024
10
+
ms.date: 01/17/2025
11
11
manager: nitinme
12
12
---
13
13
@@ -29,24 +29,30 @@ At a high level you can break down working with functions into three steps:
29
29
30
30
### Parallel function calling
31
31
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`)
40
42
41
43
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)
42
44
43
45
### Basic function calling with tools
44
46
45
47
* 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).
50
56
51
57
## Single tool/function calling example
52
58
@@ -225,7 +231,7 @@ For example in our simple time app we retrieved multiple times at the same time.
225
231
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"`.
226
232
227
233
> [!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.
229
235
230
236
## Parallel function calling with multiple functions
0 commit comments