Skip to content

Commit 3fa4c23

Browse files
Merge pull request #2079 from fosteramanda/main
Fixing OpenAI SDK Quickstart
2 parents 5b16e7e + 04eda42 commit 3fa4c23

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

articles/ai-services/agents/how-to/tools/function-calling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ ToolOutput GetResolvedToolOutput(RequiredToolCall toolCall)
133133

134134
In the sample below we create a client and define a `toolset` which will be used to process the functions defined in `user_functions`.
135135

136+
`toolset`: When using the toolset parameter, you provide not only the function definitions and descriptions but also their implementations. The SDK will execute these functions within create_and_run_process or streaming. These functions will be invoked based on their definitions.
137+
136138
```python
137139
import os
138140
from azure.ai.projects import AIProjectClient

articles/ai-services/agents/includes/quickstart-python-openai.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ with AIProjectClient.from_connection_string(
7070
) as project_client:
7171

7272
# Explicit type hinting for IntelliSense
73-
client: AzureOpenAI = project_client.inference.get_azure_openai_client()
73+
client: AzureOpenAI = project_client.inference.get_azure_openai_client(
74+
# The latest API version is 2024-10-01-preview
75+
api_version = os.environ.get("AZURE_OPENAI_API_VERSION"),
76+
)
7477

7578
with client:
7679
agent = client.beta.assistants.create(

0 commit comments

Comments
 (0)