feat(add-item): photo → Claude vision suggests name + category #13

Merged
hjess merged 1 commits from worktree-citti-arkiver-tur into main 2026-10-30 14:32:36 +01:00
Owner

In 'Tilføj vare', taking/choosing a photo now sends it (downscaled client-
side) to Claude vision, which identifies the product and returns a Danish
name, German name, best-fit catalog section and a short note. The form is
prefilled and the suggested category shown — you just confirm and type the
price. Full photo is still uploaded on submit. Degrades gracefully: no
credential or a failed call just falls back to manual entry.

  • /api/item/analyze (vision via _claude_json, now accepts image content)
  • VISION_MODEL (Haiku by default; bump to sonnet via env for harder photos)
In 'Tilføj vare', taking/choosing a photo now sends it (downscaled client- side) to Claude vision, which identifies the product and returns a Danish name, German name, best-fit catalog section and a short note. The form is prefilled and the suggested category shown — you just confirm and type the price. Full photo is still uploaded on submit. Degrades gracefully: no credential or a failed call just falls back to manual entry. - /api/item/analyze (vision via _claude_json, now accepts image content) - VISION_MODEL (Haiku by default; bump to sonnet via env for harder photos)
hjess added 1 commit 2026-10-30 14:32:32 +01:00
In 'Tilføj vare', taking/choosing a photo now sends it (downscaled client-
side) to Claude vision, which identifies the product and returns a Danish
name, German name, best-fit catalog section and a short note. The form is
prefilled and the suggested category shown — you just confirm and type the
price. Full photo is still uploaded on submit. Degrades gracefully: no
credential or a failed call just falls back to manual entry.

- /api/item/analyze (vision via _claude_json, now accepts image content)
- VISION_MODEL (Haiku by default; bump to sonnet via env for harder photos)
hjess merged commit 2eff97200a into main 2026-10-30 14:32:36 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hjess/ti#13