yes
This commit is contained in:
parent
18101ce2b3
commit
7f1eb8ab1f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue