From 7f1eb8ab1f7e5f734722b2d27caed3e7e09e07ec Mon Sep 17 00:00:00 2001 From: cirroskais Date: Sat, 20 Apr 2024 00:16:02 -0400 Subject: [PATCH] yes --- src/interactions/ai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interactions/ai.ts b/src/interactions/ai.ts index 9768c00..7a28823 100644 --- a/src/interactions/ai.ts +++ b/src/interactions/ai.ts @@ -3,7 +3,7 @@ import { type Interaction } from "@discordeno/bot"; import SlashCommand from "../lib/classes/SlashCommand"; import { Ollama } from "ollama"; -const ollama = new Ollama({ host: "http://localhost:11434" }); +const ollama = new Ollama({ host: "http://host.docker.internal:11434" }); export default class extends SlashCommand implements Command { name = "ai"; @@ -22,7 +22,7 @@ export default class extends SlashCommand implements Command { let index = 0; const response = await ollama.chat({ - model: "terrye", + model: "terry", messages: [{ role: "user", content: input }], stream: true, });