From ee9fdb56c8b16567f4aa71d368b93f0f34bd339c Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Tue, 14 Oct 2025 13:55:26 -0500 Subject: [PATCH] minor change --- .../Instructs/Services/InstructService.Execute.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs index cceb7bba..c22ac27c 100644 --- a/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs +++ b/src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs @@ -103,10 +103,10 @@ public partial class InstructService } IFileLlmProcessor? fileProcessor = null; - if (!files.IsNullOrEmpty() && !string.IsNullOrEmpty(fileOptions?.FileLlmProcessorProvider)) + if (!files.IsNullOrEmpty() && fileOptions != null) { fileProcessor = _services.GetServices() - .FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions?.FileLlmProcessorProvider)); + .FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions.FileLlmProcessorProvider)); } if (fileProcessor != null)