diff --git a/src/interactions/ai.ts b/src/interactions/ai.ts index 7a28823..ccf7866 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://host.docker.internal:11434" }); +const ollama = new Ollama({ host: process.env.OLLAMA_API }); export default class extends SlashCommand implements Command { name = "ai"; diff --git a/src/lib/types/environment.d.ts b/src/lib/types/environment.d.ts index 73a50bd..0130daf 100644 --- a/src/lib/types/environment.d.ts +++ b/src/lib/types/environment.d.ts @@ -4,5 +4,6 @@ declare module "bun" { DISCORD_TOKEN: string; DISCORD_SECRET: string; MAIL_SERVER: string; + OLLAMA_API: string; } }