Commit Graph

5 Commits

Author SHA1 Message Date
e60b1ea8d5 feat(chat): add optional photo upload support
Add vision/multimodal support to chat, allowing users to send images
alongside or instead of text prompts. Images are transmitted and persisted
as base64 data URLs.

Backend:
- Add Images []string to Message struct for persistence
- Add Images []string to GenerateTextRequest with relaxed validation
- Build multimodal user messages using OpenAI SDK content parts
- Pass images through from handlers to client
- Deep-copy Images slice in message cloning

Frontend:
- Add images?: string[] to Message and GenerateTextRequest types
- Add image selection state and file input handler
- Add camera icon button, hidden file input, and image preview strip
- Render images in user message bubbles
- Pass images through to GenerateTextRequest

Tests:
- Add TestSendMessageWithImage for vision model testing
2026-05-01 18:27:09 -04:00
5d5f10b2d8 fix(chat): preserve messages array during chat update
All checks were successful
continuous-integration/drone/push Build is passing
Object.assign was overwriting the existing messages array before the
ternary fallback could reference it. Capture the reference beforehand.
2026-04-28 23:34:46 -04:00
eb66801f58 feat: stream persistent 2026-04-28 22:41:03 -04:00
4c1523d81b fix: build 2026-04-28 22:09:19 -04:00
89f2114b06 initial commit 2026-01-17 10:09:11 -05:00