From 14da88de8b4566342a5daf0c748a7fe24389d7bd Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 19 Nov 2023 15:26:09 +0100 Subject: [PATCH] feat: Improve image generation quality selection The code change adds a conditional statement to select the image generation quality based on the selected image model. --- src/gptbot/classes/openai.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gptbot/classes/openai.py b/src/gptbot/classes/openai.py index 246a176..f857a54 100644 --- a/src/gptbot/classes/openai.py +++ b/src/gptbot/classes/openai.py @@ -228,6 +228,7 @@ Only the event_types mentioned above are allowed, you must not respond in any ot image_partial = partial( self.openai_api.images.generate, model=self.image_model, + quality="standard" if self.image_model != "dall-e-3" else "hd", prompt=prompt, n=1, size="1024x1024",