@@ -3,7 +3,7 @@ title: Quickstart for using chat completion configuration in a .NET app
3
3
titleSuffix : Azure App Configuration
4
4
description : Learn to implement chat completion configuration in your .NET application using Azure App Configuration.
5
5
services : azure-app-configuration
6
- author : mgichohi
6
+ author : MaryanneNjeri
7
7
ms.service : azure-app-configuration
8
8
ms.devlang : csharp
9
9
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
111
111
```csharp
112
112
public class ModelConfiguration
113
113
{
114
+ [ConfigurationKeyName("model")]
114
115
public string Model { get; set; }
115
116
117
+ [ConfigurationKeyName("temperature")]
116
118
public float Temperature { get; set; }
117
119
118
120
[ConfigurationKeyName("max_tokens")]
@@ -121,12 +123,16 @@ In this guide, you build an AI chat application and iterate on the prompt using
121
123
[ConfigurationKeyName("top_p")]
122
124
public float TopP { get; set; }
123
125
126
+ [ConfigurationKeyName("messages")]
124
127
public List<Message> Messages { get; set; }
125
128
}
126
129
127
130
public class Message
128
131
{
132
+ [ConfigurationKeyName("role")]
129
133
public string Role { get; set; }
134
+
135
+ [ConfigurationKeyName("content")]
130
136
public string Content { get; set; }
131
137
}
132
138
```
@@ -308,8 +314,10 @@ In this guide, you build an AI chat application and iterate on the prompt using
308
314
309
315
public class ModelConfiguration
310
316
{
317
+ [ConfigurationKeyName("model")]
311
318
public string Model { get; set; }
312
319
320
+ [ConfigurationKeyName("temperature")]
313
321
public float Temperature { get; set; }
314
322
315
323
[ConfigurationKeyName("max_tokens")]
@@ -318,12 +326,16 @@ In this guide, you build an AI chat application and iterate on the prompt using
318
326
[ConfigurationKeyName("top_p")]
319
327
public float TopP { get; set; }
320
328
329
+ [ConfigurationKeyName("messages")]
321
330
public List<Message> Messages { get; set; }
322
331
}
323
332
324
333
public class Message
325
334
{
335
+ [ConfigurationKeyName("role")]
326
336
public string Role { get; set; }
337
+
338
+ [ConfigurationKeyName("content")]
327
339
public string Content { get; set; }
328
340
}
329
341
```
0 commit comments