This commit is contained in:
cirroskais 2024-04-20 03:26:47 -04:00
parent 7f1eb8ab1f
commit 7766829dd9
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D
2 changed files with 2 additions and 1 deletions

View file

@ -3,7 +3,7 @@ import { type Interaction } from "@discordeno/bot";
import SlashCommand from "../lib/classes/SlashCommand"; import SlashCommand from "../lib/classes/SlashCommand";
import { Ollama } from "ollama"; 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 { export default class extends SlashCommand implements Command {
name = "ai"; name = "ai";

View file

@ -4,5 +4,6 @@ declare module "bun" {
DISCORD_TOKEN: string; DISCORD_TOKEN: string;
DISCORD_SECRET: string; DISCORD_SECRET: string;
MAIL_SERVER: string; MAIL_SERVER: string;
OLLAMA_API: string;
} }
} }