Skip to content

Commit 6a10210

Browse files
author
pmosk
committed
Fix configuration
1 parent 54b67ce commit 6a10210

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/AzureFunc/Applicaton/BotFlow/Flow.IncidentCreate.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private static SupportGptApiOption ResolveSupportGptApiOption(IServiceProvider s
6666
{
6767
return new(
6868
apiKey: gptApiSection["Key"].OrEmpty(),
69-
model: incidentCompleteSection["Model"].OrEmpty(),
69+
model: gptApiSection["Model"].OrEmpty(),
7070
incidentComplete: incidentComplete);
7171
}
7272

@@ -98,7 +98,7 @@ private static FlatArray<KeyValuePair<string, string>> GetGptTraceData(this ICon
9898

9999
private static bool IsAzureGpt(this IConfiguration configuration)
100100
=>
101-
string.IsNullOrEmpty(configuration[$"{GptApiSectionName}:{IncidentCompleteSectionName}:Model"]);
101+
string.IsNullOrEmpty(configuration[$"{GptApiSectionName}:Model"]);
102102

103103
private static void AppendSectionValues(this Dictionary<string, string> traceData, IConfigurationSection section)
104104
{

src/app/AzureFunc/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"GptApi": {
3030
"Key": "",
31+
"Model": "",
3132
"Version": "v2",
3233
"Azure": {
3334
"Key": "",
@@ -36,7 +37,6 @@
3637
"ApiVersion": "2023-07-01-preview"
3738
},
3839
"IncidentComplete": {
39-
"Model": "",
4040
"MaxTokens": 200,
4141
"Temperature": 0,
4242
"SystemTemplate": "Ты выделяешь краткий заголовок без деталей (не больше 125 символов) из обращений к поддержке ИТ компании",

0 commit comments

Comments
 (0)