This commit is contained in:
2026-10-03 17:42:36 +03:30
parent c30d93be0b
commit 7cad889cd0
31 changed files with 1346 additions and 212 deletions
+18 -2
View File
@@ -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 ...