From ed12f45a26d16338d6a395a39622041bd342f667 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 12 Sep 2024 02:21:55 -0700 Subject: [PATCH] Generate vivid images with DALLE-3 It's apparently the default setting in chatgpt app according to the openai cookbook at https://cookbook.openai.com/articles/what_is_new_with_dalle_3#examples-and-prompts --- src/khoj/routers/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/khoj/routers/helpers.py b/src/khoj/routers/helpers.py index 5ccaa4dd..d7e7ee96 100644 --- a/src/khoj/routers/helpers.py +++ b/src/khoj/routers/helpers.py @@ -988,6 +988,7 @@ async def text_to_image( response = state.openai_client.images.generate( prompt=improved_image_prompt, model=text2image_model, + style="vivid", response_format="b64_json", extra_headers=auth_header, )