From 7f9a360a3f30aa0fec506821650ec3e1cf7dda21 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Fri, 17 Nov 2023 00:26:30 -0500 Subject: [PATCH] fix defaults for dalle --- cogs/commands.py | 4 ++-- gpt3discord.py | 2 +- models/openai_model.py | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cogs/commands.py b/cogs/commands.py index 725a136b..61be910d 100644 --- a/cogs/commands.py +++ b/cogs/commands.py @@ -966,7 +966,7 @@ async def draw_old(self, ctx: discord.ApplicationContext, prompt: str): name="quality", description="Image quality", required=False, - default="hd", + default="standard", autocomplete=Settings_autocompleter.get_dalle3_image_qualities, ) @discord.option( @@ -980,7 +980,7 @@ async def draw_old(self, ctx: discord.ApplicationContext, prompt: str): name="style", description="The style of the generated images, choose between realism/vivid", required=False, - default="natural", + default="vivid", autocomplete=Settings_autocompleter.get_dalle3_image_styles, ) async def draw( diff --git a/gpt3discord.py b/gpt3discord.py index c4a48e5c..d68a9c06 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -34,7 +34,7 @@ from models.openai_model import Model -__version__ = "12.2.8" +__version__ = "12.2.9" PID_FILE = Path("bot.pid") diff --git a/models/openai_model.py b/models/openai_model.py index 6f8b5270..8bc36696 100644 --- a/models/openai_model.py +++ b/models/openai_model.py @@ -1405,6 +1405,8 @@ async def send_image_request( await self.usage_service.update_usage_image(image_size) + print("Inside a dalle-3 request") + image_urls = [] tasks = [] payload = {