Skip to content

Add image URL support for Anthropic model #2804

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

Open
mmazurkevich opened this issue Apr 18, 2025 · 2 comments
Open

Add image URL support for Anthropic model #2804

mmazurkevich opened this issue Apr 18, 2025 · 2 comments

Comments

@mmazurkevich
Copy link

Description
org.springframework.ai.anthropic.api.AnthropicApi.ContentBlock doesn't support Source with image URL. Currently, it's possible to attach images only in base64 format, while API allows you to do so.
What is currently implemented:
Image

Requesting API support:
Image

@dev-jonghoonpark
Copy link
Contributor

Can you share the documentation URL you captured?

@mmazurkevich
Copy link
Author

@dev-jonghoonpark Sure, https://docs.anthropic.com/en/api/messages#body-messages-content please check the messages.content.source field

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

No branches or pull requests

2 participants