62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"Serilog": {
|
|
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"Microsoft.EntityFrameworkCore.Database.Connection": "Information",
|
|
"Microsoft.EntityFrameworkCore.Database.Command": "Information",
|
|
"System": "Warning",
|
|
"Telegram.Bot": "Information"
|
|
}
|
|
},
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}] [{Level:u3}] [{SourceContext:l}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/telegram-bot-.log",
|
|
"rollingInterval": "Day",
|
|
"retainedFileCountLimit": 7,
|
|
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{SourceContext:l}] {Message:lj}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Enrich": ["FromLogContext", "WithMachineName", "WithThreadId"]
|
|
},
|
|
"TelegramBot": {
|
|
"BotToken": ""
|
|
},
|
|
"Ollama": {
|
|
"Url": "",
|
|
"DefaultModel": ""
|
|
},
|
|
"AI": {
|
|
"Temperature": 0.9,
|
|
"SystemPromptPath": "Prompts/system-prompt.txt",
|
|
"MaxRetryAttempts": 3,
|
|
"RetryDelayMs": 1000,
|
|
"RequestTimeoutSeconds": 180,
|
|
"EnableHistoryCompression": true,
|
|
"CompressionThreshold": 20,
|
|
"CompressionTarget": 10,
|
|
"MinMessageLengthForSummarization": 50,
|
|
"MaxSummarizedMessageLength": 200,
|
|
"EnableExponentialBackoff": true,
|
|
"MaxRetryDelayMs": 30000,
|
|
"CompressionTimeoutSeconds": 30,
|
|
"StatusCheckTimeoutSeconds": 10
|
|
},
|
|
"Database": {
|
|
"ConnectionString": "",
|
|
"EnableSensitiveDataLogging": false,
|
|
"CommandTimeout": 30
|
|
}
|
|
}
|