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
+11-29Lines changed: 11 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,10 @@ author: mgichohi
7
7
ms.author: mgichohi
8
8
ms.topic: how-to
9
9
ms.date: 04/20/2025
10
+
ms.collection: ce-skilling-ai-copilot
10
11
---
11
12
12
-
# Chat Completion Configuration in Azure App Configuration
13
+
# Chat Completion configuration in Azure App Configuration
13
14
14
15
Chat completion is an AI capability that enables models to generate conversational responses based on a series of messages. Unlike simple text completion, chat completion maintains context across multiple exchanges, simulating a natural conversation. Chat completion configuration allows you to define and manage how AI models generate responses in your application. A simple configuration includes the model selection and basic prompts. Azure OpenAI chat models support several [configuration options](/azure/ai-services/openai/reference#request-body-2) that control how responses are generated.
15
16
@@ -23,7 +24,7 @@ Chat completion is an AI capability that enables models to generate conversation
23
24
>
24
25
25
26
## Create a chat completion configuration
26
-
27
+
27
28
In this section, we will create a chat completion configuration in Azure Portal using the GPT-4o model as our example.
28
29
29
30
1. In Azure portal, navigate to your App configuration store. From the **Operations** menu, select **Configuration explorer** > **Create**. Then select **AI configuration**.
@@ -32,38 +33,24 @@ In this section, we will create a chat completion configuration in Azure Portal
32
33
-**Key**: Type **ChatLLM:Model**.
33
34
-**Label**: Leave this value blank.
34
35
-**Model**: Select **gpt-4o**.
35
-
-**Messages**:
36
-
1. The **System** role is added by default. Update the content to "You're from the 1800s. Express amazement at modern inventions"
37
-
1. Select **User** from the Role dropdown
38
-
1. In the **Content** text field, type "Tell me about smartphones in 20 words."
39
36
40
37
> [!div class="mx-imgBorder"]
41
38
> 
42
39
43
40
1. To view the JSON representation of the chat completion configuration, switch to the **JSON** tab:
44
41
> [!div class="mx-imgBorder"]
45
42
> 
46
-
47
-
1.Leave the rest of the values as default then select **Apply**.
43
+
44
+
1. Leave the rest of the values as default then select **Apply**.
48
45
49
46
## Create and deploy an Azure OpenAI service resource
50
47
51
-
1.[Create an Azure OpenAI service resource](/azure/ai-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource)
52
-
53
-
1. Sign in to [Azure AI Foundry Portal](https://ai.azure.com/)
54
-
55
-
1. Choose the subscription and the Azure OpenAI resource to work with, and select **Use resource**
48
+
1.[Create and deploy an Azure OpenAI service resource](/azure/ai-services/openai/how-to/create-resource) and configure the following fields:
56
49
57
-
1. Under **Management** select **Deployments**.
58
-
59
-
1. Select **Create new deployment** and configure the following fields:
60
-
-**Select a model** : gpt-4o
61
-
-**Deployment name**: gpt-4o
62
-
63
-
1. Leave the **Deployment type** and **Advanced options** set to default and select **Create**.
64
-
65
-
1. The deployments table shows a new entry that corresponds to your newly created model.
66
-
When the deployment completes, your model deployment status changes to _succeeded_.
50
+
| Field | value |
51
+
|-----------------|---------|
52
+
| Select a model | gpt-4o |
53
+
| Deployment name | gpt-4o |
67
54
68
55
1. Select the new model you just deployed in the deployment table, locate the **Endpoint** section and copy the model endpoint url in the format `"https://<open-ai-resource-name>.openai.azure.com"`.
69
56
@@ -74,16 +61,11 @@ When the deployment completes, your model deployment status changes to _succeede
74
61
-**Label**: Leave this value blank.
75
62
-**Value**: Paste the model endpoint we copied in the previous step.
76
63
77
-
Leave the rest of the values as default then select **Apply**.
78
-
79
-
> [!div class="mx-imgBorder"]
80
-
> 
64
+
Leave the **Label** and the **Content type** with their default values then select **Apply**.
81
65
82
66
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