We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf7ca41 + 79db6d2 commit 54daddbCopy full SHA for 54daddb
articles/ai-services/openai/how-to/function-calling.md
@@ -51,6 +51,7 @@ To force the model to call a specific function set the `tool_choice` parameter w
51
> 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.
52
53
```python
54
+import os
55
from openai import AzureOpenAI
56
import json
57
@@ -60,8 +61,6 @@ client = AzureOpenAI(
60
61
api_version="2023-12-01-preview"
62
)
63
-from openai import OpenAI
64
-import json
65
66
# Example function hard coded to return the same weather
67
# In production, this could be your backend API or an external API
0 commit comments