Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alvesfabi committed Feb 22, 2024
1 parent c8566d8 commit 003d16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions webapi/Controllers/ChatController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 2 additions & 4 deletions webapi/Plugins/Chat/ApiConnectorPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System;
using System;

Check warning on line 1 in webapi/Plugins/Chat/ApiConnectorPlugin.cs

View workflow job for this annotation

GitHub Actions / check-format

A source file is missing a required header.
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;
Expand Down Expand Up @@ -160,7 +159,6 @@ public ApiConnectorPlugin(string bearerToken, IHttpClientFactory clientFactory,
}
}
}

return graphResponseContent;
}
}
}

0 comments on commit 003d16c

Please sign in to comment.