Fix the modals
This commit is contained in:
parent
b2013d2759
commit
b199477a02
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue