fix file content extractor mechanism ...

This commit is contained in:
2026-10-02 00:07:58 +03:30
parent f32972b55f
commit 4521a53734
13 changed files with 157 additions and 83 deletions
+4 -3
View File
@@ -26,6 +26,7 @@ using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using xAiApi.Interfaces.Extractors;
using Newtonsoft.Json.Serialization;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@@ -187,9 +188,9 @@ namespace xAiApi
//
// Register File Content Extractors ...
services.AddSingleton<IXFileContentExtractor, XPdfContentExtractor>();
services.AddSingleton<IXFileContentExtractor, XPlainTextContentExtractor>();
services.AddSingleton<IXFileContentExtractor, XCompositeFileContentExtractor>();
// services.AddSingleton<IXFileContentExtractor, XPdfContentExtractor>();
// services.AddSingleton<IXFileContentExtractor, XPlainTextContentExtractor>();
services.AddSingleton<IXFileContentExtractor, XFileContentExtractor>();
//
// Register Default Ai Service ...