mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
c7404fb2a7
## Summary The `attachments` prop supports images, audio, video, and documents — but the JSDoc example in `Chat.tsx` only showed `image/*,application/pdf`, and the docs configuration example used `accept: image/*`, silently teaching users to restrict themselves to images. **Before (Chat.tsx JSDoc):** ```tsx accept: image/*,application/pdf, ``` **After:** ```tsx accept: image/*,audio/*,video/*,application/pdf, ``` The docs configuration example now also clarifies that omitting `accept` defaults to `*/*` (all files), and the shown value includes all four supported modalities. ## Changes - `packages/react-ui/src/components/chat/Chat.tsx` — updated JSDoc example to show all modalities; added note that default `accept` is `*/*` - `showcase/shell-docs/src/content/docs/multimodal-attachments.mdx` — updated configuration example to show `image/*,audio/*,video/*,application/pdf` and note that omitting `accept` allows all types