last ...
This commit is contained in:
+18
-2
@@ -23,6 +23,7 @@ using xCommons.Extensions;
|
||||
using xPushService.Helpers;
|
||||
using xCommons.Configurations;
|
||||
using System.Collections.Generic;
|
||||
using xAiApi.Providers.Extractors;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
@@ -188,9 +189,24 @@ namespace xAiApi
|
||||
|
||||
//
|
||||
// Register File Content Extractors ...
|
||||
// services.AddSingleton<IXFileContentExtractor, XPdfContentExtractor>();
|
||||
// services.AddSingleton<IXFileContentExtractor, XPlainTextContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XPdfFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XDocxFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XImageFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XAudioFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XExcelFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XVisionFileContentExtractor>();
|
||||
services.AddSingleton<IXFileContentExtractorBase, XPlainTextFileContentExtractor>();
|
||||
|
||||
//
|
||||
services.AddSingleton<IXFileContentExtractor, XFileContentExtractor>();
|
||||
// services.AddSingleton(sp =>
|
||||
// {
|
||||
// //
|
||||
// var extractors = sp.GetServices<IXFileContentExtractor>();
|
||||
// return new XFileContentExtractor(extractors);
|
||||
// });
|
||||
// services.AddSingleton<IXFileContentExtractor>(sp =>
|
||||
// sp.GetRequiredService<XFileContentExtractor>());
|
||||
|
||||
//
|
||||
// Register Default Ai Service ...
|
||||
|
||||
Reference in New Issue
Block a user