Skip to content

Commit 7784af0

Browse files
author
Maryanne Gichohi
committed
Minor updates to the code sample
1 parent 0e12354 commit 7784af0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

articles/azure-app-configuration/howto-chat-completion-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Chat completion configuration
33
titleSuffix: Azure App Configuration
44
description: Learn how to create chat completion configuration in Azure App Configuration.
55
ms.service: azure-app-configuration
6-
author: mgichohi
6+
author: MaryanneNjeri
77
ms.author: mgichohi
88
ms.topic: how-to
99
ms.date: 04/20/2025

articles/azure-app-configuration/quickstart-chat-completion-dotnet.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Quickstart for using chat completion configuration in a .NET app
33
titleSuffix: Azure App Configuration
44
description: Learn to implement chat completion configuration in your .NET application using Azure App Configuration.
55
services: azure-app-configuration
6-
author: mgichohi
6+
author: MaryanneNjeri
77
ms.service: azure-app-configuration
88
ms.devlang: csharp
99
ms.custom: devx-track-csharp, mode-other, devx-track-dotnet
@@ -111,8 +111,10 @@ In this guide, you build an AI chat application and iterate on the prompt using
111111
```csharp
112112
public class ModelConfiguration
113113
{
114+
[ConfigurationKeyName("model")]
114115
public string Model { get; set; }
115116
117+
[ConfigurationKeyName("temperature")]
116118
public float Temperature { get; set; }
117119
118120
[ConfigurationKeyName("max_tokens")]
@@ -121,12 +123,16 @@ In this guide, you build an AI chat application and iterate on the prompt using
121123
[ConfigurationKeyName("top_p")]
122124
public float TopP { get; set; }
123125
126+
[ConfigurationKeyName("messages")]
124127
public List<Message> Messages { get; set; }
125128
}
126129
127130
public class Message
128131
{
132+
[ConfigurationKeyName("role")]
129133
public string Role { get; set; }
134+
135+
[ConfigurationKeyName("content")]
130136
public string Content { get; set; }
131137
}
132138
```
@@ -308,8 +314,10 @@ In this guide, you build an AI chat application and iterate on the prompt using
308314
309315
public class ModelConfiguration
310316
{
317+
[ConfigurationKeyName("model")]
311318
public string Model { get; set; }
312319
320+
[ConfigurationKeyName("temperature")]
313321
public float Temperature { get; set; }
314322
315323
[ConfigurationKeyName("max_tokens")]
@@ -318,12 +326,16 @@ In this guide, you build an AI chat application and iterate on the prompt using
318326
[ConfigurationKeyName("top_p")]
319327
public float TopP { get; set; }
320328
329+
[ConfigurationKeyName("messages")]
321330
public List<Message> Messages { get; set; }
322331
}
323332
324333
public class Message
325334
{
335+
[ConfigurationKeyName("role")]
326336
public string Role { get; set; }
337+
338+
[ConfigurationKeyName("content")]
327339
public string Content { get; set; }
328340
}
329341
```

0 commit comments

Comments
 (0)