Skip to content

Add file upload support for images and PDFs (#9)#9

Open
zahlekhan wants to merge 1 commit into
mainfrom
zk/custom-upload
Open

Add file upload support for images and PDFs (#9)#9
zahlekhan wants to merge 1 commit into
mainfrom
zk/custom-upload

Conversation

@zahlekhan

Copy link
Copy Markdown
Contributor

Implemented the ability to attach image or PDF files alongside text prompts. The files are converted to base64 and sent as multimodal content to the C1 API. Key changes include:

  • Added a file picker in page.tsx for selecting files.
  • Introduced attachedFile state management in useUIState.ts.
  • Updated API call parameters in api.ts to include attached files.
  • Enhanced the ask route to handle multimodal content, supporting images and PDFs.

Implemented the ability to attach image or PDF files alongside text prompts. The files are converted to base64 and sent as multimodal content to the C1 API. Key changes include:

- Added a file picker in `page.tsx` for selecting files.
- Introduced `attachedFile` state management in `useUIState.ts`.
- Updated API call parameters in `api.ts` to include attached files.
- Enhanced the `ask` route to handle multimodal content, supporting images and PDFs.
@vercel

vercel Bot commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
template-c1-component-next Ready Ready Preview, Comment Feb 13, 2026 4:56pm

Request Review

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