minor fixes for DB and AI access.
All checks were successful
Deploy Cletus Bot / deploy (push) Successful in 13s
All checks were successful
Deploy Cletus Bot / deploy (push) Successful in 13s
This commit is contained in:
parent
2a9f9159bd
commit
46a76dcfe6
2 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"ai": {
|
||||
"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",
|
||||
"responseLength": 30
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ module.exports = {
|
|||
setLastChat: (chat) => { lastChat = chat; },
|
||||
getLastChat: () => lastChat,
|
||||
|
||||
setDB: (dbInstance) => { db = dbInstance; },
|
||||
getDB: () => db,
|
||||
|
||||
getContextSnapshot: () => ({
|
||||
bot,
|
||||
lastChat
|
||||
|
|
|
|||
Loading…
Reference in a new issue