yes
This commit is contained in:
parent
7f1eb8ab1f
commit
7766829dd9
2 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||||
|
|
1
src/lib/types/environment.d.ts
vendored
1
src/lib/types/environment.d.ts
vendored
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue