Fix the modals

This commit is contained in:
Nexus 2024-03-22 09:18:08 +00:00
parent b2013d2759
commit b199477a02
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -212,7 +212,6 @@ class OllamaGetPrompt(discord.ui.Modal):
async def callback(self, interaction: Interaction): async def callback(self, interaction: Interaction):
await interaction.response.defer() await interaction.response.defer()
self.ctx.interaction = interaction
self.value = self.children[0].value self.value = self.children[0].value
self.stop() self.stop()
@ -365,6 +364,7 @@ class Ollama(commands.Cog):
await v.wait() await v.wait()
query = v.user_prompt or query query = v.user_prompt or query
system_query = v.system_prompt system_query = v.system_prompt
await ctx.delete(delay=0.1)
model = model.casefold() model = model.casefold()
try: try: