Buff up the max number of messages
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 15s
This commit is contained in:
parent
dc53c9e351
commit
84bdccab79
1 changed files with 2 additions and 2 deletions
|
@ -1209,7 +1209,7 @@ class Ollama(commands.Cog):
|
||||||
<channels> - The channels to search through. If not provided, the current channel will be searched.
|
<channels> - The channels to search through. If not provided, the current channel will be searched.
|
||||||
<query> - A query to ask
|
<query> - A query to ask
|
||||||
"""
|
"""
|
||||||
search = max(10, min(search, 1000))
|
search = max(10, min(search, 10000))
|
||||||
channels = channels or [ctx.channel]
|
channels = channels or [ctx.channel]
|
||||||
messages: list[discord.Message] = []
|
messages: list[discord.Message] = []
|
||||||
msg = await ctx.reply("Gathering messages, please wait. This may take a while.")
|
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...")
|
await msg.edit(content="Preparing AI...")
|
||||||
|
|
||||||
system = (
|
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. "
|
" 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 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 "
|
"You should not include any pleasentries, only the message that you would send. Your messages have been "
|
||||||
|
|
Loading…
Reference in a new issue