소스 검색

Fix issue with OpenAI class to set the quality parameter based on the model type.

Kumi 1 년 전
부모
커밋
2e6c07eb22
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/gptbot/classes/openai.py

+ 1 - 0
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)