49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"Serilog": {
|
|
"Using": ["Serilog.Sinks.Console", "Serilog.Sinks.File"],
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"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": "8461762778:AAEk1wHMqd84_I_loL9FQPciZakGYe557KA"
|
|
},
|
|
"OpenRouter": {
|
|
"Token": "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",
|
|
"Url": "https://openrouter.ai/api",
|
|
"AvailableModels": [
|
|
"qwen/qwen3-4b:free",
|
|
"meta-llama/llama-3.1-8b-instruct:free",
|
|
"microsoft/phi-3-mini-128k-instruct:free",
|
|
"google/gemma-2-2b-it:free"
|
|
],
|
|
"DefaultModel": "qwen/qwen3-4b:free",
|
|
"MaxRetries": 3,
|
|
"MaxTokens": 1000,
|
|
"Temperature": 0.7
|
|
}
|
|
}
|