From 003d16cd961095becde36ec3889b0b669ef1ddb8 Mon Sep 17 00:00:00 2001 From: Fabian Alves Date: Thu, 22 Feb 2024 20:07:28 -0300 Subject: [PATCH] fix formatting --- webapi/Controllers/ChatController.cs | 4 +--- webapi/Plugins/Chat/ApiConnectorPlugin.cs | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/webapi/Controllers/ChatController.cs b/webapi/Controllers/ChatController.cs index 60eb982cf..fb84d6bab 100644 --- a/webapi/Controllers/ChatController.cs +++ b/webapi/Controllers/ChatController.cs @@ -321,9 +321,7 @@ await planner.Kernel.ImportOpenApiPluginFunctionsAsync( if (authHeaders.TryGetValue("APICONNECTOR", out string? ApiConnectorAuthHeader)) { this._logger.LogInformation("Enabling Microsoft Graph plugin(s)."); - planner.Kernel.ImportFunctions( - new ApiConnectorPlugin(ApiConnectorAuthHeader, this._httpClientFactory, this._plannerOptions.OnBehalfOfAuth, this._logger), - "apiConnector"); + planner.Kernel.ImportFunctions(new ApiConnectorPlugin(ApiConnectorAuthHeader, this._httpClientFactory, this._plannerOptions.OnBehalfOfAuth, this._logger),"apiConnector"); } if (variables.TryGetValue("customPlugins", out string? customPluginsString)) diff --git a/webapi/Plugins/Chat/ApiConnectorPlugin.cs b/webapi/Plugins/Chat/ApiConnectorPlugin.cs index 530dfaabc..06e5e4487 100644 --- a/webapi/Plugins/Chat/ApiConnectorPlugin.cs +++ b/webapi/Plugins/Chat/ApiConnectorPlugin.cs @@ -1,10 +1,9 @@ -using System; +using System; using System.ComponentModel; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; using Microsoft.SemanticKernel; using System.Collections.Generic; using System.Net.Http; @@ -160,7 +159,6 @@ public ApiConnectorPlugin(string bearerToken, IHttpClientFactory clientFactory, } } } - return graphResponseContent; } -} \ No newline at end of file +}