diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-27 01:59:14 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-27 01:59:14 -0400 |
| commit | 7b9a58cac0b59a73562d68540292e89f57bf30cf (patch) | |
| tree | bb4c8344ef0e461e4ab5c7b47ebca904819fcb59 /bot/src/plugins/chatbot.js | |
| parent | 598e23ab48f29e13b490ac15acc6f7bbe3671028 (diff) | |
| download | AleeBot-7b9a58cac0b59a73562d68540292e89f57bf30cf.tar.gz AleeBot-7b9a58cac0b59a73562d68540292e89f57bf30cf.tar.bz2 AleeBot-7b9a58cac0b59a73562d68540292e89f57bf30cf.zip | |
More activities; LLM model now needs .env; No longer need to confirm a pending quote
Diffstat (limited to 'bot/src/plugins/chatbot.js')
| -rw-r--r-- | bot/src/plugins/chatbot.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/src/plugins/chatbot.js b/bot/src/plugins/chatbot.js index 17a26ee..efd2ff5 100644 --- a/bot/src/plugins/chatbot.js +++ b/bot/src/plugins/chatbot.js @@ -1,7 +1,8 @@ -import { ollamaGlobal, ollamaModel } from '../storage/consts.js'; +import { ollamaGlobal } from '../storage/consts.js'; import { ollama } from '../utils/ollama.js'; import { AttachmentBuilder } from 'discord.js'; import { guildSettings } from '../models/guild-settings.js'; +import 'dotenv/config'; export async function ChatBot(msg, args) { const guildSetting = await guildSettings.findOne({ where: { guildID: msg.guild.id } }); @@ -13,7 +14,7 @@ export async function ChatBot(msg, args) { const loadingMessage = await msg.reply('Thinking...'); const response = await ollama.chat({ - model: ollamaModel, + model: process.env.OLLAMA_MODEL, messages: [{ role: 'user', content: args }], }); |
