From 7b9a58cac0b59a73562d68540292e89f57bf30cf Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 27 Mar 2025 01:59:14 -0400 Subject: More activities; LLM model now needs .env; No longer need to confirm a pending quote --- bot/src/plugins/chatbot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bot/src/plugins/chatbot.js') 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 }], }); -- cgit v1.2.3