Fix passing images to anthropic chat models to extract questions

This commit is contained in:
Debanjum 2024-11-04 20:23:31 -08:00
parent b6145df3be
commit 5724d16a6f

View file

@ -86,6 +86,8 @@ def extract_questions_anthropic(
messages = [ChatMessage(content=prompt, role="user")] messages = [ChatMessage(content=prompt, role="user")]
messages, system_prompt = format_messages_for_anthropic(messages, system_prompt)
response = anthropic_completion_with_backoff( response = anthropic_completion_with_backoff(
messages=messages, messages=messages,
system_prompt=system_prompt, system_prompt=system_prompt,