From 5724d16a6f03d6f42a11e9464aa7c47dddbce716 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Mon, 4 Nov 2024 20:23:31 -0800 Subject: [PATCH] Fix passing images to anthropic chat models to extract questions --- src/khoj/processor/conversation/anthropic/anthropic_chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/khoj/processor/conversation/anthropic/anthropic_chat.py b/src/khoj/processor/conversation/anthropic/anthropic_chat.py index e2fd0c74..e878ceea 100644 --- a/src/khoj/processor/conversation/anthropic/anthropic_chat.py +++ b/src/khoj/processor/conversation/anthropic/anthropic_chat.py @@ -86,6 +86,8 @@ def extract_questions_anthropic( messages = [ChatMessage(content=prompt, role="user")] + messages, system_prompt = format_messages_for_anthropic(messages, system_prompt) + response = anthropic_completion_with_backoff( messages=messages, system_prompt=system_prompt,