Go update

This commit is contained in:
HugeFrog24
2026-05-07 15:40:12 +02:00
parent 265f6676d8
commit bfe72635b7
8 changed files with 38 additions and 38 deletions
+6 -6
View File
@@ -15,10 +15,10 @@ import (
)
type Bot struct {
tgBot TelegramClient
db *gorm.DB
anthropicClient *anthropic.Client
chatMemories map[int64]*ChatMemory
tgBot TelegramClient
db *gorm.DB
anthropicClient *anthropic.Client
chatMemories map[int64]*ChatMemory
memorySize int
chatMemoriesMu sync.RWMutex
config BotConfig
@@ -84,8 +84,8 @@ func NewBot(db *gorm.DB, config BotConfig, clock Clock, tgClient TelegramClient)
anthropicClient := anthropic.NewClient(config.AnthropicAPIKey)
b := &Bot{
db: db,
anthropicClient: anthropicClient,
db: db,
anthropicClient: anthropicClient,
chatMemories: make(map[int64]*ChatMemory),
memorySize: config.MemorySize,
config: config,