Skip to content

Commit

Permalink
fix optimize bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kav-K committed Jan 12, 2023
1 parent c9359bb commit 9528619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/image_prompt_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def optimize(self, ctx: discord.ApplicationContext, prompt: str):

final_prompt = self.OPTIMIZER_PRETEXT
# replace mentions with nicknames for the prompt
final_prompt += await self.converser_cog.replace_mention(ctx, prompt)
final_prompt += await self.converser_cog.mention_with_username(ctx, prompt)

# If the prompt doesn't end in a period, terminate it.
if not final_prompt.endswith("."):
Expand Down

0 comments on commit 9528619

Please sign in to comment.