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: hub/apps/how-tos/chatgpt-openai-winui3.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: How to add OpenAI chat completions to your WinUI 3 / Windows App SDK desktop app
2
+
title: How to add OpenAI chat completions to a WinUI desktop app
3
3
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's chat completions API into the app.
4
4
ms.topic: how-to
5
5
ms.date: 11/26/2024
@@ -15,7 +15,7 @@ content-type: how-to
15
15
16
16
In this how-to, you'll learn how to integrate OpenAI's API into your WinUI 3 / Windows App SDK desktop app. We'll build a chat-like interface that lets you generate responses to messages using OpenAI's [chat completions API](https://platform.openai.com/docs/guides/text-generation/chat-completions-api):
17
17
18
-
:::image type="content" source="images/chatgpt-openai/long-story.png" alt-text="A less minimal chat app.":::
18
+
:::image type="content" source="images/chatgpt-openai/long-story.png" alt-text="A screenshot of a less minimal WinUI chat app.":::
19
19
20
20
<!--todo: The source code for the app we're building in this how-to is available todo -->
21
21
@@ -34,7 +34,7 @@ In this how-to, you'll learn how to integrate OpenAI's API into your WinUI 3 / W
34
34
35
35
After creating your project, you should see the following default file structure in your Solution Explorer:
:::image type="content" source="images/chatgpt-openai/collapsed-file-structure-chatgpt.png" alt-text="A screenshot of the default directory structure in Solution Explorer.":::
38
38
39
39
## Set your environment variable
40
40
@@ -167,7 +167,7 @@ public sealed partial class MainWindow : Window
167
167
168
168
Run the app and try chatting! You should see something like this:
0 commit comments