diff --git a/services/recommendation-service/dotnet/Controllers/AssetsController.cs b/services/recommendation-service/dotnet/Controllers/AssetsController.cs index 3b655ace..8f26fa25 100644 --- a/services/recommendation-service/dotnet/Controllers/AssetsController.cs +++ b/services/recommendation-service/dotnet/Controllers/AssetsController.cs @@ -45,7 +45,7 @@ public async Task GetRecommendations([FromBody] MiyagiContext miy sw.Start(); // ========= Import semantic functions as plugins ========= log.LogDebug("Path: {S}", Directory.GetCurrentDirectory()); - var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins"); + var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins"); var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin"); // ========= Import native function ========= @@ -95,7 +95,7 @@ public async Task GetRecommendations([FromBody] MiyagiContext miy public async Task GetRecommendationsRunAsync([FromBody] MiyagiContext miyagiContext) { // ========= Import semantic functions as plugins ========= - var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins"); + var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins"); var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin"); // ========= Import native function ========= diff --git a/services/recommendation-service/dotnet/Controllers/InvestmentsController.cs b/services/recommendation-service/dotnet/Controllers/InvestmentsController.cs index 8d9695be..aaeb83b4 100644 --- a/services/recommendation-service/dotnet/Controllers/InvestmentsController.cs +++ b/services/recommendation-service/dotnet/Controllers/InvestmentsController.cs @@ -44,7 +44,7 @@ public async Task GetRecommendationsWithPlanner([FromBody] Miyagi log.BeginScope("InvestmentController.GetRecommendationsAsync"); // ========= Import Advisor skill from local filesystem ========= log.LogDebug("Path: {P}", Directory.GetCurrentDirectory()); - var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins"); + var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins"); _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin"); _kernel.ImportFunctions(new UserProfilePlugin(), "UserProfilePlugin"); var memoryCollection = _kernelSettings.CollectionName; @@ -105,7 +105,7 @@ public async Task GetRecommendations([FromBody] MiyagiContext miy log.BeginScope("InvestmentController.GetRecommendationsAsync"); // ========= Import Advisor skill from local filesystem ========= log.LogDebug("Path: {P}", Directory.GetCurrentDirectory()); - var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "Plugins"); + var pluginsDirectory = Path.Combine(Directory.GetCurrentDirectory(), "plugins"); var advisorPlugin = _kernel.ImportSemanticFunctionsFromDirectory(pluginsDirectory, "AdvisorPlugin"); var userProfilePlugin = _kernel.ImportFunctions(new UserProfilePlugin(), "UserProfilePlugin"); var memoryCollection = _kernelSettings.CollectionName; diff --git a/services/recommendation-service/dotnet/Program.cs b/services/recommendation-service/dotnet/Program.cs index 39874d5b..e2d0b891 100644 --- a/services/recommendation-service/dotnet/Program.cs +++ b/services/recommendation-service/dotnet/Program.cs @@ -21,6 +21,13 @@ // Add Semantic Kernel services builder.Services.AddSkServices(); +// Explicitly configure Kestrel to only use HTTP +builder.WebHost.ConfigureKestrel(serverOptions => +{ + // Remove the HTTPS endpoint if it's there + serverOptions.ListenAnyIP(80); // Listen on port 80 for HTTP +}); + var app = builder.Build(); // Configure the HTTP request pipeline. diff --git a/services/recommendation-service/dotnet/Utils/RepoUtils.cs b/services/recommendation-service/dotnet/Utils/RepoUtils.cs index b1b1cadc..4615aff4 100644 --- a/services/recommendation-service/dotnet/Utils/RepoUtils.cs +++ b/services/recommendation-service/dotnet/Utils/RepoUtils.cs @@ -9,13 +9,13 @@ namespace GBB.Miyagi.RecommendationService.Utils; public static class RepoUtils { /// - /// Scan the local folders from the repo, looking for "Plugins" folder. + /// Scan the local folders from the repo, looking for "plugins" folder. /// /// The full path to samples/skills public static string GetSamplePluginsPath() { const string Parent = ""; - const string Folder = "Plugins"; + const string Folder = "plugins"; bool SearchPath(string pathToFind, out string result, int maxAttempts = 10) {