mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Simplify redundant logic for constructing structured messages with image url
This commit is contained in:
@@ -175,7 +175,6 @@ def generate_chatml_messages_with_context(
|
|||||||
|
|
||||||
message_content = chat["message"] + message_notes
|
message_content = chat["message"] + message_notes
|
||||||
|
|
||||||
if chat.get("uploadedImageData") and vision_enabled:
|
|
||||||
message_content = construct_structured_message(
|
message_content = construct_structured_message(
|
||||||
message_content, chat.get("uploadedImageData"), model_type, vision_enabled
|
message_content, chat.get("uploadedImageData"), model_type, vision_enabled
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user