Skip to content

Commit

Permalink
Enable pluginstore and update the topic name for CLI handler (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw authored Feb 12, 2025
1 parent 8fc4c0d commit 625d2e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion shell/agents/Microsoft.Azure.Agent/ChatSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ internal ChatSession(HttpClient httpClient)
["getformstate"] = true,
["notificationcopilotbuttonallerror"] = false,
["chitchatprompt"] = true,
["azurepluginstore"] = true,
// TODO: the streaming is slow and not sending chunks, very clumsy for now.
// ["streamresponse"] = true,
// ["azurepluginstore"] = true,
};
}

Expand Down Expand Up @@ -239,6 +239,11 @@ private HttpRequestMessage PrepareForChat(string input)
content = new {
flights = _flights
}
},
new {
contentType = Utils.JsonContentType,
name = "azurecopilot/authorization",
content = $"Bearer {_accessToken.Token}"
}
},
};
Expand Down
2 changes: 1 addition & 1 deletion shell/agents/Microsoft.Azure.Agent/Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal class CopilotActivity
{
public const string ConversationStateName = "azurecopilot/conversationstate";
public const string SuggestedResponseName = "azurecopilot/suggesteduserresponses";
public const string CLIHandlerTopic = "CLIHandler";
public const string CLIHandlerTopic = "generate_azure_cli_scripts";

public string Type { get; set; }
public string Id { get; set; }
Expand Down

0 comments on commit 625d2e0

Please sign in to comment.