Skip to content

Commit c131b95

Browse files
committed
fix paths
1 parent eae092e commit c131b95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/ai/quickstarts/quickstart-azure-openai-tool.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The app uses the [`Microsoft.Extensions.AI`](https://www.nuget.org/packages/Micr
111111
112112
:::zone target="docs" pivot="azure-openai"
113113
114-
:::code language="csharp" source="snippets/prompt-completion/azure-openai/program.cs" range="1-16":::
114+
:::code language="csharp" source="snippets/function-calling/azure-openai/program.cs" range="1-16":::
115115
116116
> [!NOTE]
117117
> <xref:Azure.Identity.DefaultAzureCredential> searches for authentication credentials from your local tooling. If you aren't 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. For more information, see [Authenticate to Azure AI services with .NET](/dotnet/ai/azure-ai-services-authentication).
@@ -120,17 +120,17 @@ The app uses the [`Microsoft.Extensions.AI`](https://www.nuget.org/packages/Micr
120120
121121
:::zone target="docs" pivot="openai"
122122
123-
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="1-14":::
123+
:::code language="csharp" source="snippets/function-calling/openai/program.cs" range="1-14":::
124124
125125
:::zone-end
126126
127127
1. Create a new `ChatOptions` object that contains an inline function the AI model can call to get the current weather. The function declaration include a delegate to run logic and name and description parameters to describe the purpose of the function to the AI model.
128128
129-
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="18-28":::
129+
:::code language="csharp" source="snippets/function-calling/openai/program.cs" range="18-28":::
130130
131131
1. Add a system prompt to the chat history to provide context and instructions to the model. Send a user prompt with a question that requires the AI model to call the registered function to properly answer the question.
132132
133-
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="32-50":::
133+
:::code language="csharp" source="snippets/function-calling/openai/program.cs" range="32-50":::
134134
135135
1. Use the `dotnet run` command to run the app:
136136

0 commit comments

Comments
 (0)