Skip to content

Commit 80e11de

Browse files
committed
Update to make both topics pattern compliant
Both topics are now 100% compliant for a how-to topic, based on Learn Linter validation.
1 parent f48f807 commit 80e11de

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

hub/apps/how-tos/chatgpt-openai-winui3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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
33
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's chat completions API into the app.
44
ms.topic: how-to
55
ms.date: 11/26/2024
@@ -15,7 +15,7 @@ content-type: how-to
1515

1616
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):
1717

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.":::
1919

2020
<!--todo: The source code for the app we're building in this how-to is available todo -->
2121

@@ -34,7 +34,7 @@ In this how-to, you'll learn how to integrate OpenAI's API into your WinUI 3 / W
3434

3535
After creating your project, you should see the following default file structure in your Solution Explorer:
3636

37-
:::image type="content" source="images/chatgpt-openai/collapsed-file-structure-chatgpt.png" alt-text="The default directory structure.":::
37+
:::image type="content" source="images/chatgpt-openai/collapsed-file-structure-chatgpt.png" alt-text="A screenshot of the default directory structure in Solution Explorer.":::
3838

3939
## Set your environment variable
4040

@@ -167,7 +167,7 @@ public sealed partial class MainWindow : Window
167167

168168
Run the app and try chatting! You should see something like this:
169169

170-
:::image type="content" source="images/chatgpt-openai/hello-gpt.png" alt-text="A minimal chat app.":::
170+
:::image type="content" source="images/chatgpt-openai/hello-gpt.png" alt-text="A screenshot of a minimal WinUI chat app.":::
171171

172172
## Improve the chat interface
173173

@@ -385,7 +385,7 @@ Then, add the `InputTextBox_KeyDown` event handler to handle the `Enter` key:
385385

386386
Your new-and-improved chat interface should look something like this:
387387

388-
:::image type="content" source="images/chatgpt-openai/long-story.png" alt-text="A less minimal chat app.":::
388+
:::image type="content" source="images/chatgpt-openai/long-story.png" alt-text="A screenshot of a less minimal WinUI 3 chat app.":::
389389

390390
## Recap
391391

@@ -403,7 +403,7 @@ Here's what you accomplished in this how-to:
403403

404404
## Full code files
405405

406-
<!--todo: embed from github -->
406+
The following code is a full example of the chat app with OpenAI chat completions integrated:
407407

408408
```xml MainWindow.xaml
409409
<?xml version="1.0" encoding="utf-8"?>

hub/apps/how-tos/dall-e-winui3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: How to add DALL-E image generation to your WinUI 3 / Windows App SDK app
3-
description: Get started with WinUI 3 / Windows App SDK by integrating DALL-E image capabilities into your app.
2+
title: How to add DALL-E image generation to your WinUI app
3+
description: Get started with WinUI 3 / Windows App SDK by integrating DALL-E image capabilities into your desktop app.
44
ms.topic: how-to
55
ms.date: 11/26/2024
66
keywords: windows app sdk, winappsdk, winui3
@@ -140,7 +140,7 @@ public class MessageItem
140140

141141
Run your app, enter a prompt, and click the "Send" button. You should see something like this:
142142

143-
:::image type="content" source="images/dall-e-winui3/cat-laser-eyes.png" alt-text="Image generation demo":::
143+
:::image type="content" source="images/dall-e-winui3/cat-laser-eyes.png" alt-text="A screenshot of the WinUI image generation demo app.":::
144144

145145
## Customize the UI on your own
146146

0 commit comments

Comments
 (0)