feat: externalize AI configuration, implement resilience policies, and update extraction prompt formatting

This commit is contained in:
2026-04-26 10:01:47 +02:00
parent d8e6931289
commit 412320980f
6 changed files with 65 additions and 38 deletions
@@ -0,0 +1,13 @@
namespace NexusReader.Infrastructure.Configuration;
public class AiSettings
{
public const string SectionName = "Ai:Google";
public string ApiKey { get; set; } = string.Empty;
public string Model { get; set; } = "gemini-1.5-flash";
public int MaxInputLength { get; set; } = 15000;
public int MaxOutputTokens { get; set; } = 1000;
public int RetryAttempts { get; set; } = 3;
public double Temperature { get; set; } = 0.1;
}