mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Use the summarizer model for generating improved image prompts
This commit is contained in:
parent
673d0d367c
commit
45e725ac9c
1 changed files with 3 additions and 1 deletions
|
@ -449,8 +449,10 @@ async def generate_better_image_prompt(
|
|||
online_results=simplified_online_results,
|
||||
)
|
||||
|
||||
summarizer_model: ChatModelOptions = await ConversationAdapters.aget_summarizer_conversation_config()
|
||||
|
||||
with timer("Chat actor: Generate contextual image prompt", logger):
|
||||
response = await send_message_to_model_wrapper(image_prompt)
|
||||
response = await send_message_to_model_wrapper(image_prompt, chat_model_option=summarizer_model)
|
||||
|
||||
return response.strip()
|
||||
|
||||
|
|
Loading…
Reference in a new issue