feat: payload logging (on/off + gzip) via appsettings + fix destroy messages ref
This commit is contained in:
1 parent
d482f5dca3
commit
f552b44b05
4 files changed
+29
-7
No files matched your search
+4
-1
@@ -35,10 +35,13 @@ builder.Services.AddSingleton(chatService);
|
||||
|
||||
// AnthropicService (Singleton – shared zwischen ChatEndpoint und TelegramService)
|
||||
var anthropicToken = builder.Configuration["AnthropicToken"] ?? "";
|
||||
var payloadLogging = builder.Configuration.GetValue<bool>("PayloadLogging", false);
|
||||
var payloadLoggingGzip = builder.Configuration.GetValue<bool>("PayloadLoggingGzip", false);
|
||||
builder.Services.AddSingleton<AnthropicService>(sp =>
|
||||
new AnthropicService(
|
||||
sp.GetRequiredService<IHttpClientFactory>(),
|
||||
anthropicToken, toolService, dbService, memoryService));
|
||||
anthropicToken, toolService, dbService, memoryService,
|
||||
payloadLogging, payloadLoggingGzip));
|
||||
|
||||
// Telegram Bot (pro Session – Token aus Session-Config)
|
||||
var maxIterations = builder.Configuration.GetValue<int>("MaxIterations", 100);
|
||||
|
||||
Reference in new issue
Block a user