From 7766829dd9a9a5739097b0a6d819867046413b20 Mon Sep 17 00:00:00 2001 From: cirroskais Date: Sat, 20 Apr 2024 03:26:47 -0400 Subject: [PATCH] yes --- src/interactions/ai.ts | 2 +- src/lib/types/environment.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; } }