Skip to content

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Nov 25, 2024

  • Enhance AnthropicChatModel to support PDF and document content types
  • Introduce getContentBlockTypeByMedia method for flexible media type handling
  • Update ContentBlock handling to dynamically determine content type for media
  • Add multimodal PDF support test case for Claude 3.5 Sonnet
  • Update documentation to reflect PDF and multimodal capabilities
  • Modify comparison chart to show PDF support for Anthropic Claude

Release #1819

…ltimodal Support

- Enhance AnthropicChatModel to support PDF and document content types
- Introduce getContentBlockTypeByMedia method for flexible media type handling
- Update ContentBlock handling to dynamically determine content type for media
- Add multimodal PDF support test case for Claude 3.5 Sonnet
- Update documentation to reflect PDF and multimodal capabilities
- Modify comparison chart to show PDF support for Anthropic Claude

Release spring-projects#1819
@tzolov tzolov marked this pull request as ready for review November 25, 2024 15:16
@tzolov tzolov added this to the 1.0.0-M5 milestone Nov 25, 2024
@markpollack markpollack self-assigned this Nov 25, 2024
else if (media.getMimeType().toString().contains("pdf")) {
return Type.DOCUMENT;
}
return Type.IMAGE;
Copy link
Member

Choose a reason for hiding this comment

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

if it wasn't classified as image, prob better to throw an exception

@markpollack
Copy link
Member

updated to throw exception if mime type is not know.

merged in e543cd0

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

Successfully merging this pull request may close these issues.

2 participants