Skip to content

Commit c510dbe

Browse files
committed
link fixes
1 parent 55bdb86 commit c510dbe

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The sample project includes completed apps you can run to connect to your AI mod
4848
# [Azure OpenAI](#tab/azure-openai)
4949

5050
> [!NOTE]
51-
> The Azure OpenAI scenario assumes the use of `azd` to provision an Azure OpenAI resource and configure essential permissions. If you prefer not to use `azd`, you can [provision an Azure OpenAI resource](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=web-portal) using another tool such as the Azure portal or Azure CLI.
51+
> The Azure OpenAI scenario assumes the use of `azd` to provision an Azure OpenAI resource and configure essential permissions. If you prefer not to use `azd`, you can [provision an Azure OpenAI resource](/azure/ai-services/openai/how-to/create-resource) using another tool such as the Azure portal or Azure CLI.
5252

5353
1. From a terminal or command prompt, navigate to the `azure-openai\01-HikeBenefitsSummary` directory.
5454

@@ -81,7 +81,7 @@ The **Program.cs** file contains all of the app code. The first several lines of
8181
> [!NOTE]
8282
> `DefaultAzureCredential` searches for credentials from your local tooling. If you are not using the `azd` template to provision the Azure OpenAI resource, you'll need to assign the `Azure AI Developer` role to the account you used to sign-in to Visual Studio or the Azure CLI.
8383
84-
:::code language="csharp" source="./snippets/prompt-completion/extensions-azure-openai/openai/program.cs" range="6-8":::
84+
:::code language="csharp" source="./snippets/prompt-completion/extensions-ai/azure-openai/program.cs" range="6-8":::
8585
8686
---
8787
@@ -93,7 +93,7 @@ The following code obtains an `IChatClient` service configured to connect to the
9393
9494
# [Azure OpenAI](#tab/azure-openai)
9595
96-
:::code language="csharp" source="./snippets/prompt-completion/extensions-azure-openai/openai/program.cs" range="10-12":::
96+
:::code language="csharp" source="./snippets/prompt-completion/extensions-ai/azure-openai/program.cs" range="10-12":::
9797
9898
---
9999
@@ -105,7 +105,7 @@ The `CompleteAsync` function sends the `prompt` to the model to generate a respo
105105
106106
# [Azure OpenAI](#tab/azure-openai)
107107
108-
:::code language="csharp" source="./snippets/prompt-completion/extensions-azure-openai/openai/program.cs" range="15-23":::
108+
:::code language="csharp" source="./snippets/prompt-completion/extensions-ai/azure-openai/program.cs" range="15-23":::
109109
110110
Customize the text content of the file or the length of the summary to see the differences in the responses.
111111
@@ -154,14 +154,7 @@ Get started with AI by creating a simple .NET 8.0 console chat application to su
154154
155155
1. From a terminal or command prompt, navigate to the `azure-openai\01-HikeBenefitsSummary` directory.
156156
157-
1. Run the `azd up` command to provision the Azure OpenAI resource using the [Azure Developer CLI](/developer/azure-developer-cli/overview). `azd` provisions the Azure OpenAI resources and configures user secrets for you.
158-
159-
1. Run the following commands to configure your OpenAI API key as a secret for the sample app:
160-
161-
```bash
162-
dotnet user-secrets init
163-
dotnet user-secrets set AzureOpenAIKey <your-openai-key>
164-
```
157+
1. Run the `azd up` command to provision the Azure OpenAI resource using the [Azure Developer CLI](/developer/azure-developer-cli/overview). `azd` provisions the Azure OpenAI resources and configures permissions for you.
165158
166159
1. Use the `dotnet run` command to run the app:
167160

0 commit comments

Comments
 (0)