You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/howto-chat-completion-config.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Chat completion is an AI capability that enables models to generate conversation
22
22
23
23
In this section, you will create a chat completion configuration in Azure Portal using the GPT-4o model as an example.
24
24
25
-
1. In Azure portal, navigate to your App configuration store. From the **Operations** menu, select **Configuration explorer** > **Create**. Then select **AI configuration**.
25
+
1. In Azure portal, navigate to your App configuration store. From the **Operations** menu, select **Configuration explorer** > **Create**, and then select **AI configuration**.
26
26
27
27
1. Specify the following values:
28
28
-**Key**: Type **ChatApp:Model**.
@@ -39,28 +39,28 @@ In this section, you will create a chat completion configuration in Azure Portal
39
39
40
40
## Add model connection configuration
41
41
42
-
You've added your chat completion configuration named **ChatApp:Model** in the previous section. In this section, you'll add your model connection details such as the model's API key and endpoint to App configuration. You can store the model API key as a Key Vault reference.
42
+
You've successfully added your chat completion configuration named **ChatApp:Model**. In this section, you'll add the connection details for your model, including the endpoint and deployment name. If required by your authentication method, you can also specify an API key using a Key Vault reference.
43
43
44
44
> [!NOTE]
45
45
> This tutorial demonstrates how to use chat completion configuration with an Azure OpenAI model. However, the chat completion configuration demonstrated in the tutorial can be applied to any AI model you choose to work with in your application.
46
46
>
47
47
48
-
1. Follow the [Get started with Azure OpenAI Service](/azure/ai-services/openai/overview#get-started-with-azure-openai-service) to create and deploy an Azure OpenAI service resource with following settings:
48
+
1. Follow the [Get started with Azure OpenAI Service](/azure/ai-services/openai/overview#get-started-with-azure-openai-service) to create and deploy an Azure OpenAI service resource with a **gpt-4o** model. Please note down the deployment name for later use.
49
49
50
-
| Field | value |
51
-
|-----------------|---------|
52
-
| Select a model | gpt-4o |
53
-
| Deployment name | gpt-4o |
50
+
1. In your Azure OpenAI resource, from the **Resource Management** menu, select **Keys and Endpoint** and copy the Azure OpenAI resource endpoint it should follow the format: `https://<open-ai-resource-name>.openai.azure.com`. If using the API key for authentication copy the API key as well.
54
51
55
-
1.In your Azure OpenAI resource, from the **Resource Management**menu, select **Keys and Endpoint**and copy your Azure OpenAI resource endpoint. It should follow the format: `https://<open-ai-resource-name>.openai.azure.com`.
52
+
1.Navigate to your App Configuration store and add the following key-values. Leave **Label**and **Content Type**with their default values. For more information about how to add key-values to a store using the Azure portal or the CLI, go to [Create a key-value](./quickstart-azure-app-configuration-create.md#create-a-key-value).
56
53
57
-
1. Navigate to your App Configuration store and add the following key-value. Leave **Label** and **Content Type** with their default values. For more information about how to add key-values to a store using the Azure portal or the CLI, go to [Create a key-value](./quickstart-azure-app-configuration-create.md#create-a-key-value).
|_ChatApp:AzureOpenAI:Endpoint_|_Paste the resource endpoint you copied in the previous step_|
57
+
|_ChatApp:AzureOpenAI:DeploymentName_|_Paste the resource deployment name you copied in the previous step_|
58
+
59
+
If you plan to use an API key for authentication, you can optionally add it as a Key Vault reference using the following key-value. For detailed instructions, see [Add a Key Vault reference to App Configuration](./use-key-vault-references-dotnet-core.md#add-a-key-vault-reference-to-app-configuration).
|_ChatApp:AzureOpenAI:Endpoint_|_Paste the resource endpoint you copied in the previous step_|
62
-
63
-
1. To store your Azure OpenAI resource API key as a Key Vault reference, refer to [Add a Key Vault reference to App Configuration](./use-key-vault-references-dotnet-core.md#add-a-key-vault-reference-to-app-configuration) guide.
63
+
|_ChatApp:AzureOpenAI:APIKey_|_The Key Vault reference of your Azure OpenAI resource API key_|
64
64
65
65
1. Continue to the following instructions to implement the chat completion configuration into your application for the language or platform you are using.
0 commit comments