From 84bdccab79eea66ed2c2cc88a687d999e73854f2 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 8 Jun 2024 20:12:35 +0100 Subject: [PATCH] Buff up the max number of messages --- src/cogs/ollama.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index 291518d..a410152 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -1209,7 +1209,7 @@ class Ollama(commands.Cog): - The channels to search through. If not provided, the current channel will be searched. - A query to ask """ - search = max(10, min(search, 1000)) + search = max(10, min(search, 10000)) channels = channels or [ctx.channel] messages: list[discord.Message] = [] msg = await ctx.reply("Gathering messages, please wait. This may take a while.") @@ -1224,7 +1224,7 @@ class Ollama(commands.Cog): await msg.edit(content="Preparing AI...") system = ( - "You are {0.mention!r}, a member of the discord server {0.guild.name!r}. You have been provided with" + "You are {0.display_name!r}, a member of the discord server {0.guild.name!r}. You have been provided with" " your message history. You should generate a new message based on the content of the messages provided. " "You should not repeat a message. You should write a message that is under 4000 characters. " "You should not include any pleasentries, only the message that you would send. Your messages have been "