Skip to content

ChatAnthropicVertex: BlockType Image not supported #1019

Open
@qvalentin

Description

@qvalentin

ChatAnthropicVertex does not support Images in the format that is documented in the the langchain docs: https://python.langchain.com/docs/how_to/multimodal_inputs/#images

In langchain-anthropic the image ContentBlocks are converted: https://github.com/langchain-ai/langchain/blob/6a5073b227feff67eae7ebf51cdc3bdc8d09c4b3/libs/partners/anthropic/langchain_anthropic/chat_models.py#L206

But this code is missing from _anthropic_utils of ChatAnthropicVertex https://github.com/langchain-ai/langchain-google/blob/main/libs/vertexai/langchain_google_vertexai/_anthropic_utils.py#L185

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions