minor fixes for DB and AI access.
All checks were successful
Deploy Cletus Bot / deploy (push) Successful in 13s

This commit is contained in:
roberts 2025-05-10 12:40:17 -05:00
parent 2a9f9159bd
commit 46a76dcfe6
2 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,7 @@
}, },
"ai": { "ai": {
"model": "gemma3", "model": "gemma3",
"ollamaUrl": "http://localhost:11434/api/generate", "ollamaUrl": "http://192.168.1.3:11434/api/generate",
"persona": "a curious minecraft explorer who learns from the world around them", "persona": "a curious minecraft explorer who learns from the world around them",
"responseLength": 30 "responseLength": 30
}, },

View file

@ -13,6 +13,9 @@ module.exports = {
setLastChat: (chat) => { lastChat = chat; }, setLastChat: (chat) => { lastChat = chat; },
getLastChat: () => lastChat, getLastChat: () => lastChat,
setDB: (dbInstance) => { db = dbInstance; },
getDB: () => db,
getContextSnapshot: () => ({ getContextSnapshot: () => ({
bot, bot,
lastChat lastChat