Yash Worlikar commited on
Commit
7d48943
·
1 Parent(s): 348babb
FoodHealthChecker/FoodCheckerService.cs CHANGED
@@ -16,7 +16,7 @@ namespace FoodHealthChecker
16
  var oaiOptions = config.GetSection("OpenAI").Get<OpenAIOptions>();
17
  var kernelBuilder = Kernel.CreateBuilder();
18
 
19
- kernelBuilder.Services.AddLogging(config => { config.AddConsole(); config.SetMinimumLevel(LogLevel.Trace); });
20
  if (azureOptions != null && azureOptions.isValid())
21
  {
22
  kernelBuilder.AddAzureOpenAIChatCompletion(azureOptions.DeploymentName, azureOptions.Endpoint, azureOptions.ApiKey);
 
16
  var oaiOptions = config.GetSection("OpenAI").Get<OpenAIOptions>();
17
  var kernelBuilder = Kernel.CreateBuilder();
18
 
19
+ kernelBuilder.Services.AddLogging(config => { config.AddConsole(); config.SetMinimumLevel(LogLevel.Information); });
20
  if (azureOptions != null && azureOptions.isValid())
21
  {
22
  kernelBuilder.AddAzureOpenAIChatCompletion(azureOptions.DeploymentName, azureOptions.Endpoint, azureOptions.ApiKey);
FoodHealthChecker/Program.cs CHANGED
@@ -18,8 +18,8 @@ namespace FoodHealthChecker
18
  return new MarkdownPipelineBuilder().UseSoftlineBreakAsHardlineBreak().Build();
19
  });
20
  builder.Services.AddAntiforgery(o => o.SuppressXFrameOptionsHeader = true);
21
- builder.Services.AddSingleton<FoodCheckerPlugin>();
22
  builder.Services.AddSingleton<FoodCheckerService>();
 
23
  var app = builder.Build();
24
 
25
  // Configure the HTTP request pipeline.
 
18
  return new MarkdownPipelineBuilder().UseSoftlineBreakAsHardlineBreak().Build();
19
  });
20
  builder.Services.AddAntiforgery(o => o.SuppressXFrameOptionsHeader = true);
 
21
  builder.Services.AddSingleton<FoodCheckerService>();
22
+
23
  var app = builder.Build();
24
 
25
  // Configure the HTTP request pipeline.
FoodHealthChecker/SemanticKernel/Plugins/FoodCheckerFilterPlugin.cs CHANGED
@@ -34,7 +34,7 @@ namespace FoodHealthChecker.SemanticKernel.Plugins
34
 
35
  public class FoodCheckerFilterPluginTemplates
36
  {
37
- public const string VerifyFoodIngredients = @"c";
38
- public const string VerifyFoodRelatedImages = @"d";
39
  }
40
  }
 
34
 
35
  public class FoodCheckerFilterPluginTemplates
36
  {
37
+ public const string VerifyFoodIngredients = @"TODO";
38
+ public const string VerifyFoodRelatedImages = @"TODO";
39
  }
40
  }