Skip to content

Commit 625d2e0

Browse files
authored
Enable pluginstore and update the topic name for CLI handler (#337)
1 parent 8fc4c0d commit 625d2e0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

shell/agents/Microsoft.Azure.Agent/ChatSession.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ internal ChatSession(HttpClient httpClient)
5656
["getformstate"] = true,
5757
["notificationcopilotbuttonallerror"] = false,
5858
["chitchatprompt"] = true,
59+
["azurepluginstore"] = true,
5960
// TODO: the streaming is slow and not sending chunks, very clumsy for now.
6061
// ["streamresponse"] = true,
61-
// ["azurepluginstore"] = true,
6262
};
6363
}
6464

@@ -239,6 +239,11 @@ private HttpRequestMessage PrepareForChat(string input)
239239
content = new {
240240
flights = _flights
241241
}
242+
},
243+
new {
244+
contentType = Utils.JsonContentType,
245+
name = "azurecopilot/authorization",
246+
content = $"Bearer {_accessToken.Token}"
242247
}
243248
},
244249
};

shell/agents/Microsoft.Azure.Agent/Schema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ internal class CopilotActivity
120120
{
121121
public const string ConversationStateName = "azurecopilot/conversationstate";
122122
public const string SuggestedResponseName = "azurecopilot/suggesteduserresponses";
123-
public const string CLIHandlerTopic = "CLIHandler";
123+
public const string CLIHandlerTopic = "generate_azure_cli_scripts";
124124

125125
public string Type { get; set; }
126126
public string Id { get; set; }

0 commit comments

Comments
 (0)