-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Scope
Implement vision support in the Claude/Anthropic provider.
Changes
crates/zeph-llm/src/claude.rs- Override
supports_vision() -> true - Add
AnthropicContentBlock::Image { source: ImageSource }variant ImageSource:{ type: "base64", media_type: String, data: String }- In
split_messages()/ request builder: whenMessagePart::Imageis present, switch from plain string content toStructuredContent::Blocksformat containing both text and image blocks
- Override
Notes
- Claude API expects base64-encoded images in structured content blocks
- Supported formats: JPEG, PNG, GIF, WebP
- Max image size: 20MB per the API docs
Reactions are currently unavailable