mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 21:29:12 +00:00
Merge branch 'master' of github.com:khoj-ai/khoj into features/improve-multiple-output-mode-generation
This commit is contained in:
@@ -334,9 +334,10 @@ def construct_structured_message(
|
||||
ChatModelOptions.ModelType.GOOGLE,
|
||||
ChatModelOptions.ModelType.ANTHROPIC,
|
||||
]:
|
||||
constructed_messages: List[Any] = [
|
||||
{"type": "text", "text": message},
|
||||
]
|
||||
if not attached_file_context and not (vision_enabled and images):
|
||||
return message
|
||||
|
||||
constructed_messages: List[Any] = [{"type": "text", "text": message}]
|
||||
|
||||
if not is_none_or_empty(attached_file_context):
|
||||
constructed_messages.append({"type": "text", "text": attached_file_context})
|
||||
|
||||
Reference in New Issue
Block a user