From 2e6c07eb220aee5e05ec4399419adcb891dbd69b Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 7 Nov 2023 15:55:25 +0100 Subject: [PATCH] Fix issue with OpenAI class to set the quality parameter based on the model type. --- 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 8eb9344..7732373 100644 --- a/src/gptbot/classes/openai.py +++ b/src/gptbot/classes/openai.py @@ -119,6 +119,7 @@ Only the event_types mentioned above are allowed, you must not respond in any ot api_key=self.api_key, user=user, api_base=self.base_url, + quality=("hd" if model == "dall-e-3" else "normal") ) response = await self._request_with_retries(chat_partial)