From dd224a8158129f7097f7ae0ff8c0b3bf9fffd07f Mon Sep 17 00:00:00 2001 From: Michael Lamothe Date: Tue, 7 May 2024 07:02:45 +1000 Subject: [PATCH] Removed unused code. --- LLama.Web/Common/LLamaOptions.cs | 15 +++++---------- LLama.Web/Program.cs | 1 - 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/LLama.Web/Common/LLamaOptions.cs b/LLama.Web/Common/LLamaOptions.cs index 4a1d6e0a..8c16b617 100644 --- a/LLama.Web/Common/LLamaOptions.cs +++ b/LLama.Web/Common/LLamaOptions.cs @@ -1,12 +1,7 @@ -namespace LLama.Web.Common -{ - public class LLamaOptions - { - public ModelLoadType ModelLoadType { get; set; } - public List Models { get; set; } +namespace LLama.Web.Common; - public void Initialize() - { - } - } +public class LLamaOptions +{ + public ModelLoadType ModelLoadType { get; set; } + public List Models { get; set; } } diff --git a/LLama.Web/Program.cs b/LLama.Web/Program.cs index be7ee63a..499761a8 100644 --- a/LLama.Web/Program.cs +++ b/LLama.Web/Program.cs @@ -19,7 +19,6 @@ builder.Services.AddLogging((loggingBuilder) => loggingBuilder.SetMinimumLevel(L // Load InteractiveOptions builder.Services.AddOptions() - .PostConfigure(x => x.Initialize()) .BindConfiguration(nameof(LLamaOptions)); // Services DI