Skip to content

Add image attachment & vision support#149

Merged
threepointone merged 2 commits intomainfrom
kimi-multimodal
Mar 19, 2026
Merged

Add image attachment & vision support#149
threepointone merged 2 commits intomainfrom
kimi-multimodal

Conversation

@threepointone
Copy link
Contributor

Add client-side image input (drag-and-drop, paste, file picker) with attachment previews and removal; include images as message file parts (data URIs) when sending. Update server-side ChatAgent to decode data URI file parts into Uint8Array so the AI SDK treats them as inline data (prevents attempted HTTP fetch). Update README to document vision/image input and bump workers-ai-provider dependency in package.json.

Add client-side image input (drag-and-drop, paste, file picker) with attachment previews and removal; include images as message file parts (data URIs) when sending. Update server-side ChatAgent to decode data URI file parts into Uint8Array so the AI SDK treats them as inline data (prevents attempted HTTP fetch). Update README to document vision/image input and bump workers-ai-provider dependency in package.json.
Consolidate multi-line arrow function and function-call formatting for readability. In src/app.tsx the image filter in addFiles was collapsed to a single line; in src/server.ts the inlineDataUrls(await convertToModelMessages(...)) call was also put on one line. No functional changes.
@threepointone threepointone merged commit 930ae10 into main Mar 19, 2026
4 checks passed
@threepointone threepointone deleted the kimi-multimodal branch March 19, 2026 19:30
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

Successfully merging this pull request may close these issues.

1 participant