Skip to content

Commit b4d13d8

Browse files
Update broken and redirected links in windev docs (#5624)
1 parent a8bfdb5 commit b4d13d8

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,34 @@
11
---
22
title: How to add OpenAI chat completions to a WinUI desktop app
3-
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's chat completions API into the app.
3+
description: Get started with WinUI 3 / Windows App SDK desktop apps by integrating OpenAI's text generation and prompting APIs into the app.
44
ms.topic: how-to
5-
ms.date: 11/26/2024
5+
ms.date: 07/24/2025
66
keywords: windows app sdk, winappsdk, winui3, openai, chatgpt
77
ms.localizationpriority: medium
88
ms.custom: template-quickstart
99
audience: new-desktop-app-developers
1010
content-type: how-to
11-
#Customer intent: As a Windows developer, I want to learn how to integrate OpenAI's chat completions API into my WinUI 3 / Windows App SDK desktop app so that I can build a chat-like interface that generates responses to messages.
11+
#Customer intent: As a Windows developer, I want to learn how to integrate OpenAI's text generation and prompting APIs into my WinUI 3 / Windows App SDK desktop app so that I can build a chat-like interface that generates responses to messages.
1212
---
1313

1414
# Add OpenAI chat completions to your WinUI 3 / Windows App SDK desktop app
1515

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):
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 [text generation and prompting APIs](https://platform.openai.com/docs/guides/text):
1717

1818
:::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

2222
## Prerequisites
2323

24-
- Set up your development computer (see [Get started with WinUI](../get-started/start-here.md)).
25-
- Familiarity with the core concepts in *[How to build a Hello World app using C# and WinUI 3 / Windows App SDK](./hello-world-winui3.md)* - we'll build upon that how-to in this one.
24+
- Set up your development computer (see [Start developing Windows apps](../get-started/start-here.md)).
25+
- Familiarity with the core concepts in *[How to build a Hello World app using C# and WinUI / Windows App SDK](./hello-world-winui3.md)* - we'll build upon that how-to in this one.
2626
- An OpenAI API key from your [OpenAI developer dashboard](https://platform.openai.com/api-keys).
2727
- An OpenAI SDK installed in your project. Refer to the [OpenAI documentation](https://platform.openai.com/docs/libraries) for a list of community libraries. In this how-to, we'll use the official [OpenAI .NET API library](https://github.com/openai/openai-dotnet).
2828

2929
## Create a project
3030

31-
1. Open Visual Studio and create a new project via `File` > `New` > `Project`.
32-
1. Search for `WinUI` and select the `Blank App, Packaged (WinUI 3 in Desktop)` C# project template.
33-
1. Specify a project name, solution name, and directory. In this example, our `ChatGPT_WinUI3` project belongs to a `ChatGPT_WinUI3` solution, which will be created in `C:\Projects\`.
34-
35-
After creating your project, you should see the following default file structure in your Solution Explorer:
36-
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.":::
31+
You create a new WinUI project in Visual Studio by following the steps in the [Create and launch your first WinUI app](/windows/apps/get-started/start-here#3-create-and-launch-your-first-winui-app) section of the [Start developing Windows apps](../get-started/start-here.md) article. For this example, enter `ChatGPT_WinUI3` as the project name and `ChatGPT_WinUI3` for the solution name when entering the project details in the dialog.
3832

3933
## Set your environment variable
4034

@@ -176,7 +170,7 @@ Let's make the following improvements to the chat interface:
176170
- Add a `ScrollViewer` to the `StackPanel` to enable scrolling.
177171
- Add a `TextBlock` to display the GPT response in a way that's more visually distinct from the user's input.
178172
- Add a `ProgressBar` to indicate when the app is waiting for a response from the GPT API.
179-
- Center the `StackPanel` in the window, similar to ChatGPT's [web interface](https://chatgpt.com/).
173+
- Center the `StackPanel` in the window, similar to ChatGPT's [web interface](https://chatgpt.com).
180174
- Ensure that messages wrap to the next line when they reach the edge of the window.
181175
- Make the `TextBox` larger and responsive to the `Enter` key.
182176

@@ -392,7 +386,7 @@ Your new-and-improved chat interface should look something like this:
392386
Here's what you accomplished in this how-to:
393387

394388
1. You added OpenAI's API capabilities to your WinUI 3 / Windows App SDK desktop app by installing the official OpenAI library and initializing it with your API key.
395-
1. You built 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).
389+
1. You built a chat-like interface that lets you generate responses to messages using OpenAI's [text generation and prompting APIs](https://platform.openai.com/docs/guides/text).
396390
1. You improved the chat interface by:
397391
1. adding a `ScrollViewer`,
398392
1. using a `TextBlock` to display the GPT response,

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to add DALL-E image generation to your WinUI app
33
description: Get started with WinUI 3 / Windows App SDK by integrating DALL-E image capabilities into your desktop app.
44
ms.topic: how-to
5-
ms.date: 11/26/2024
5+
ms.date: 07/24/2025
66
keywords: windows app sdk, winappsdk, winui3
77
ms.localizationpriority: medium
88
ms.custom: template-quickstart
@@ -17,8 +17,8 @@ In this how-to, we'll integrate DALL-E's image generation capabilities into your
1717

1818
## Prerequisites
1919

20-
- Set up your development computer (see [Get started with WinUI](../get-started/start-here.md)).
21-
- A functional chat interface into which this capability will be integrated. See *[How to add OpenAI chat completions to your WinUI 3 / Windows App SDK desktop app](./chatgpt-openai-winui3.md)* - we'll demonstrate how to integrate DALL-E into the chat interface from this how-to.
20+
- Set up your development computer (see [Start developing Windows apps](../get-started/start-here.md)).
21+
- A functional chat interface into which this capability will be integrated. See *[How to add OpenAI chat completions to your WinUI / Windows App SDK desktop app](./chatgpt-openai-winui3.md)* - we'll demonstrate how to integrate DALL-E into the chat interface from this how-to.
2222
- An OpenAI API key from your [OpenAI developer dashboard](https://platform.openai.com/api-keys) assigned to the `OPENAI_API_KEY` environment variable.
2323
- An OpenAI SDK installed in your project. Refer to the [OpenAI documentation](https://platform.openai.com/docs/libraries) for a list of community libraries. In this how-to, we'll use the official [OpenAI .NET API library](https://github.com/openai/openai-dotnet).
2424

@@ -357,6 +357,6 @@ namespace ChatGPT_WinUI3
357357

358358
## Related content
359359

360-
- [OpenAI API Documentation](https://platform.openai.com/docs/)
360+
- [OpenAI API Documentation](https://platform.openai.com/docs/overview)
361361
- [Windows App SDK Samples](../get-started/samples.md)
362362
- [OpenAI .NET library on GitHub](https://github.com/openai/openai-dotnet)

uwp/security/intro-to-secure-windows-app-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ The app model also manages the app lifecycle. It limits the background execution
273273

274274
When memory resources on the device are running low, Windows frees memory space by terminating apps. This lifecycle model forces apps to persist data whenever they’re suspended, because there is no additional time available between suspension and termination.
275275

276-
For more information, see [It's Universal: Understanding the Lifecycle of a Windows 10/11 Application](https://visualstudiomagazine.com/articles/2015/09/01/its-universal.aspx).
276+
For more information, see [It's Universal: Understanding the Lifecycle of a Windows 10 Application](https://visualstudiomagazine.com/articles/2015/09/01/its-universal.aspx).
277277

278278
## 4.2 Stored credential protection
279279

0 commit comments

Comments
 (0)