summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot.go b/bot.go
index 31354af..4587c08 100644
--- a/bot.go
+++ b/bot.go
@@ -276,10 +276,9 @@ func init() {
if err := os.MkdirAll(historyDir, os.ModePerm); err != nil {
panic(err)
}
- store = storage.NewProviderSQL("test.db")
- // defer file.Close()
logger = slog.New(slog.NewTextHandler(file, nil))
logger.Info("test msg")
+ store = storage.NewProviderSQL("test.db", logger)
// https://github.com/coreydaley/ggerganov-llama.cpp/blob/master/examples/server/README.md
// load all chats in memory
loadHistoryChats()