diff --git a/webapi/Plugins/Chat/ApiConnectorPlugin.cs b/webapi/Plugins/Chat/ApiConnectorPlugin.cs index c786e2ebd..a6959399f 100644 --- a/webapi/Plugins/Chat/ApiConnectorPlugin.cs +++ b/webapi/Plugins/Chat/ApiConnectorPlugin.cs @@ -87,7 +87,7 @@ public ApiConnectorPlugin(string bearerToken, IHttpClientFactory clientFactory, // Failed to get graph data: {graphResponse.StatusCode}. [SKFunction] [Description("Call a Graph API with the OData query and the Graph API Scopes based on user input")] - public async Task CallGraphApiTasksAsync([Description("Url of the Graph API with the OData query to call")] string apiToCall, [Description("Comma separated value string with the Graph API Scopes needed to execute the call")] string graphScopes, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CallGraphApiTasksAsync([Description("Url of the Graph API with the OData query to call")] string apiToCall, [Description("Comma separated value string with the Graph API Scopes needed to execute the call")] string graphScopes, CancellationToken cancellationToken = default) { if (string.IsNullOrEmpty(apiToCall)) { diff --git a/webapi/Plugins/Chat/CopilotChatPlanner.cs b/webapi/Plugins/Chat/CopilotChatPlanner.cs index ad8eb1083..81a8f71b7 100644 --- a/webapi/Plugins/Chat/CopilotChatPlanner.cs +++ b/webapi/Plugins/Chat/CopilotChatPlanner.cs @@ -56,11 +56,8 @@ public class CopilotChatPlanner /// Matches: $variableName, $variable_name, $variable-name, $some_variable_Name, $variableName123, $variableName_123, $variableName-123 /// Does not match: $123variableName, $100 $200 /// - - // private const string VariableRegex = @"\$([A-Za-z]+[_-]*[\w]+)"; private const string VariableRegex = @"\$((?!top|filter|select|expand|orderby|skip|count|search)[A-Za-z0-9_]*)"; - /// /// Supplemental text to add to the plan goal if PlannerOptions.Type is set to Stepwise. /// Helps the planner know when to bail out to request additional user input.