minor change
This commit is contained in:
parent
9dab7c8343
commit
ee9fdb56c8
|
|
@ -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<IFileLlmProcessor>()
|
||||
.FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions?.FileLlmProcessorProvider));
|
||||
.FirstOrDefault(x => x.Provider.IsEqualTo(fileOptions.FileLlmProcessorProvider));
|
||||
}
|
||||
|
||||
if (fileProcessor != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue