diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-07-27 12:19:33 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-07-27 12:19:33 -0400 |
| commit | 45b48a01178e8501ca9b534f8e02a3192a1d2d7d (patch) | |
| tree | ddf820ea10ef499397fd7f0d6703e8ddae3ea38f /cmd | |
| parent | 4920f83392c0af6896b43e6e30af9b2666f9217c (diff) | |
| download | x-45b48a01178e8501ca9b534f8e02a3192a1d2d7d.tar.xz x-45b48a01178e8501ca9b534f8e02a3192a1d2d7d.zip | |
idiocy
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mimi/Modelfile | 2 | ||||
| -rw-r--r-- | cmd/mimi/modules/discord/jufra/jufra.go | 4 |
2 files changed, 3 insertions, 3 deletions
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) { |
