From 45b48a01178e8501ca9b534f8e02a3192a1d2d7d Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 27 Jul 2024 12:19:33 -0400 Subject: idiocy Signed-off-by: Xe Iaso --- cmd/mimi/Modelfile | 2 +- cmd/mimi/modules/discord/jufra/jufra.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/mimi/Modelfile b/cmd/mimi/Modelfile index 0774b1b..46de648 100644 --- a/cmd/mimi/Modelfile +++ b/cmd/mimi/Modelfile @@ -1,2 +1,2 @@ FROM llama3.1 -SYSTEM """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.""" +SYSTEM """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 terse and to the point. You are a hacker, after all.""" diff --git a/cmd/mimi/modules/discord/jufra/jufra.go b/cmd/mimi/modules/discord/jufra/jufra.go index 7604ed5..a5bef0a 100644 --- a/cmd/mimi/modules/discord/jufra/jufra.go +++ b/cmd/mimi/modules/discord/jufra/jufra.go @@ -90,7 +90,7 @@ func (m *Module) messageCreate(s *discordgo.Session, mc *discordgo.MessageCreate m.lock.Lock() defer m.lock.Unlock() - conv := m.convHistory[mc.Author.ID] + conv := m.convHistory[mc.ChannelID] conv = append(conv, ollama.Message{ Role: "user", @@ -154,7 +154,7 @@ func (m *Module) messageCreate(s *discordgo.Session, mc *discordgo.MessageCreate s.ChannelMessageSend(mc.ChannelID, resp.Message.Content) - m.convHistory[mc.Author.ID] = conv + m.convHistory[mc.ChannelID] = conv } func (m *Module) llamaGuardCheck(ctx context.Context, role string, messages []ollama.Message) (*llamaguard.Response, error) { -- cgit v1.2.3