Per-bot API keys implemented

This commit is contained in:
HugeFrog24
2024-10-22 19:29:24 +02:00
parent 298517a79a
commit ebb3ec3fe6
4 changed files with 5 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ type BotConfig struct {
SystemPrompts map[string]string `json:"system_prompts"`
Active bool `json:"active"` // New field to control bot activity
OwnerTelegramID int64 `json:"owner_telegram_id"`
AnthropicAPIKey string `json:"anthropic_api_key"` // Add this line
}
// Custom unmarshalling to handle anthropic.Model