Auto completion in chat

This commit is contained in:
2025-10-12 16:00:32 +08:00
parent f4a659fce5
commit 9631cd3edd
4 changed files with 159 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ using System.Text.Json.Serialization;
using System.Threading.RateLimiting;
using DysonNetwork.Shared.Cache;
using DysonNetwork.Shared.GeoIp;
using DysonNetwork.Sphere.Autocompletion;
using DysonNetwork.Sphere.WebReader;
using DysonNetwork.Sphere.Discovery;
using DysonNetwork.Sphere.Poll;
@@ -118,6 +119,7 @@ public static class ServiceCollectionExtensions
services.AddScoped<WebFeedService>();
services.AddScoped<DiscoveryService>();
services.AddScoped<PollService>();
services.AddScoped<AutocompletionService>();
var translationProvider = configuration["Translation:Provider"]?.ToLower();
switch (translationProvider)
@@ -129,4 +131,4 @@ public static class ServiceCollectionExtensions
return services;
}
}
}