mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Fix passing images to anthropic chat models to extract questions
This commit is contained in:
parent
b6145df3be
commit
5724d16a6f
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue