Skip to content

Commit 0c0e5d4

Browse files
committed
fix
1 parent a256000 commit 0c0e5d4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/ai/quickstarts/quickstart-openai-summarize-text.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ Complete the following steps to create a .NET console app to connect to an AI se
8181
8282
:::zone-end
8383
84+
:::zone target="docs" pivot="openai"
85+
86+
1. From a terminal or command prompt, run the following commands to configure your OpenAI API key as a secret for the sample app:
87+
88+
```bash
89+
dotnet user-secrets init
90+
dotnet user-secrets set OpenAIKey <your-openai-key>
91+
```
92+
93+
1. Use the `dotnet run` command to run the app:
94+
95+
```dotnetcli
96+
dotnet run
97+
```
98+
99+
:::zone-end
100+
101+
84102
## Add the app code
85103
86104
The app uses the [`Microsoft.SemanticKernel`](https://www.nuget.org/packages/Microsoft.SemanticKernel) package to send and receive requests to the OpenAI service.

0 commit comments

Comments
 (0)