Skip to content

fix (provider/google-vertex): fix anthropic support for image urls in messages - #5523

Merged
lgrammel merged 2 commits into
mainfrom
shaper/pr/vertex-anthropic-image
Apr 3, 2025
Merged

fix (provider/google-vertex): fix anthropic support for image urls in messages#5523
lgrammel merged 2 commits into
mainfrom
shaper/pr/vertex-anthropic-image

Conversation

@shaper

@shaper shaper commented Apr 3, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@lgrammel
lgrammel merged commit 292f543 into main Apr 3, 2025
@lgrammel
lgrammel deleted the shaper/pr/vertex-anthropic-image branch April 3, 2025 07:37
baseURL,
headers: options.headers ?? {},
fetch: options.fetch,
supportsImageUrls: false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this set to false?? @lgrammel

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SDK is throwing errors URL sources are not supported for vertex now, it is not converting urls to base64 anymore

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems broken after .14 version aeba38e#diff-6b314517fe13fd78e5d279e3bede3255a255a1ac00b6ca85e7f00835c282a892R57-R61 because this method supportsUrl was introduced.

@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider labels Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider task-merge-tracking-no-issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants