We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dab7c8 commit ee9fdb5Copy full SHA for ee9fdb5
src/Infrastructure/BotSharp.Core/Instructs/Services/InstructService.Execute.cs
@@ -103,10 +103,10 @@ public async Task<InstructResult> Execute(
103
}
104
105
IFileLlmProcessor? fileProcessor = null;
106
- if (!files.IsNullOrEmpty() && !string.IsNullOrEmpty(fileOptions?.FileLlmProcessorProvider))
+ if (!files.IsNullOrEmpty() && fileOptions != null)
107
{
108
fileProcessor = _services.GetServices<IFileLlmProcessor>()
109
- .FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions?.FileLlmProcessorProvider));
+ .FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions.FileLlmProcessorProvider));
110
111
112
if (fileProcessor != null)
0 commit comments