Skip to content

Commit 9e07bb6

Browse files
authored
Merge pull request #2237 from MicrosoftDocs/main
1/10/2025 AM Publish
2 parents a3d6c04 + 8bae9c8 commit 9e07bb6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

articles/ai-services/openai/includes/use-your-data-python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mrbullwinkle #travisw
55
ms.author: mbullwin #travisw
66
ms.service: azure-ai-openai
77
ms.topic: include
8-
ms.date: 03/07/2024
8+
ms.date: 01/10/2025
99
---
1010

1111
[!INCLUDE [Set up required variables](./use-your-data-common-variables.md)]
@@ -59,7 +59,7 @@ deployment = os.environ.get("AZURE_OPENAI_DEPLOYMENT_ID")
5959
client = openai.AzureOpenAI(
6060
azure_endpoint=endpoint,
6161
api_key=api_key,
62-
api_version="2024-02-01",
62+
api_version="2024-10-21",
6363
)
6464

6565
completion = client.chat.completions.create(
@@ -87,7 +87,8 @@ completion = client.chat.completions.create(
8787
}
8888
)
8989

90-
print(completion.model_dump_json(indent=2))
90+
print(f"{completion.choices[0].message.role}: {completion.choices[0].message.content}")
91+
9192
```
9293

9394
# [OpenAI Python 0.28.1](#tab/python)

articles/ai-studio/tutorials/copilot-sdk-build-rag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ But don't delete them yet, if you want to deploy your chat app to Azure in [the
186186
## Next step
187187
188188
> [!div class="nextstepaction"]
189-
> [Part 3: Evaluate and deploy your chat app to Azure](copilot-sdk-evaluate-deploy.md)
189+
> [Part 3: Evaluate your chat app to Azure](copilot-sdk-evaluate-deploy.md)

0 commit comments

Comments
 (0)