-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anthropic[patch]: fix tool call and tool res image_url handling #26587
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Co-authored-by: ccurme <[email protected]>
tool_content = _format_messages( | ||
[HumanMessage(block["content"])] | ||
)[1][0]["content"] | ||
content.append({**block, **{"content": tool_content}}) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to get rid of the else
branches if at all possible (and instead have an elif with an instance check)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no other known types so alternative would be to raise an error on else
…chain-ai#26587) Co-authored-by: ccurme <[email protected]>
No description provided.