mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +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,
|
online_results=simplified_online_results,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
summarizer_model: ChatModelOptions = await ConversationAdapters.aget_summarizer_conversation_config()
|
||||||
|
|
||||||
with timer("Chat actor: Generate contextual image prompt", logger):
|
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()
|
return response.strip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue