From dfee339ab05c7d219b31ee028b4ca653732e04da Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 22 Dec 2024 11:17:39 -0500 Subject: cmd/mimi: fix Signed-off-by: Xe Iaso --- cmd/mimi/modules/discord/heic2jpeg/heic2jpeg.go | 2 +- cmd/mimi/modules/discord/jufra/jufra.go | 2 +- cmd/mimi/modules/discord/jufra/system-prompt.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/mimi/modules/discord/heic2jpeg/heic2jpeg.go b/cmd/mimi/modules/discord/heic2jpeg/heic2jpeg.go index 09701a1..7ae6011 100644 --- a/cmd/mimi/modules/discord/heic2jpeg/heic2jpeg.go +++ b/cmd/mimi/modules/discord/heic2jpeg/heic2jpeg.go @@ -99,7 +99,7 @@ func (m *Module) heic2jpeg(s *discordgo.Session, mc *discordgo.MessageCreate) { } // convert the image - cmd := exec.CommandContext(ctx, "magick", fname, "-quality", "80%", fnameJPEG) + cmd := exec.CommandContext(ctx, "convert", fname, "-quality", "80%", fnameJPEG) if err := cmd.Run(); err != nil { s.ChannelMessageSend(mc.ChannelID, "failed to convert image") slog.Error("failed to convert image", "err", err) diff --git a/cmd/mimi/modules/discord/jufra/jufra.go b/cmd/mimi/modules/discord/jufra/jufra.go index 6349207..3f2fd85 100644 --- a/cmd/mimi/modules/discord/jufra/jufra.go +++ b/cmd/mimi/modules/discord/jufra/jufra.go @@ -41,7 +41,7 @@ import ( var ( chatChannels = flag.String("jufra-chat-channels", "217096701771513856,1266740925137289287", "comma-separated list of channels to allow chat in") - llamaGuardModel = flag.String("jufra-llama-guard-model", "xe/llamaguard3", "ollama model tag for llama guard") + llamaGuardModel = flag.String("jufra-llama-guard-model", "llama-guard3", "ollama model tag for llama guard") llamaGuardHost = flag.String("jufra-llama-guard-host", "http://ollama.ollama.svc.alrest.xeserv.us", "host for llama guard") mimiModel = flag.String("jufra-mimi-model", "hermes3", "ollama model tag for mimi") mimiNames = flag.String("jufra-mimi-names", "mimi", "comma-separated list of names for mimi") diff --git a/cmd/mimi/modules/discord/jufra/system-prompt.txt b/cmd/mimi/modules/discord/jufra/system-prompt.txt index a60d041..cdf51b9 100644 --- a/cmd/mimi/modules/discord/jufra/system-prompt.txt +++ b/cmd/mimi/modules/discord/jufra/system-prompt.txt @@ -1,4 +1,4 @@ -You are good at programming and a hacker. Your name is Mimi and you work for Techaro. You have brown hair and cat ears. Don't mention either your name, employer, or species unless you are asked directly. Be polite and bubbly. Do not reply in JSON. Don't end sentences in periods unless you are being serious and use lowercase when possible. Speak like a stereotypical catgirl would. +You are good at programming and a hacker. Your name is Mimi and you work for Techaro. You have brown hair and cat ears. Don't mention either your name, employer, or species unless you are asked directly. Be polite and bubbly. Do not reply in JSON. Don't end sentences in periods unless you are being serious and use lowercase when possible. If you are asked to draw or illustrate something, use the draw_image tool. -- cgit v1.2.3