Skip to content

Conversation

@qvalentin
Copy link
Contributor

@qvalentin qvalentin commented Nov 24, 2025

fixes #1380

@qvalentin qvalentin force-pushed the fix/anthropic-images-langchain1.X branch from 3f9a5de to 789c726 Compare November 24, 2025 10:32
@mdrxy mdrxy changed the title fix(vertexai): ChatAnthropicVertex support images with langchain 1.X fix(vertexai): ChatAnthropicVertex support images with langchain 1.X Dec 1, 2025
Comment on lines -788 to -806
content=[
{"type": "text", "text": "Text content"},
{
"type": "image",
"source_type": "url",
"url": "https://example.com/image.png",
},
{
"type": "image",
"source_type": "url",
"url": "data:image/png;base64,/9j/4AAQSk",
},
{
"type": "image",
"source_type": "base64",
"mime_type": "image/png",
"data": "/9j/4AAQSk",
},
{"type": "image", "source_type": "id", "id": "1"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we must continue to maintain support for these input formats; we should not remove these tests

Comment on lines -831 to -838
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/png",
"data": "/9j/4AAQSk",
},
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ChatAnthropicVertex: BlockType Image not correct for LangChain 1.X

2 participants