feat: add Claude proxy endpoint for auto pair generation

POST /api/claude/generate-pairs — proxies image + objects to Claude
Haiku and returns 30 structured pairs (text/yes_no/question, easy/medium)
as JSON. Keeps the Anthropic API key server-side via ANTHROPIC_API_KEY.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 21:00:29 +02:00
parent 7b3ce50a17
commit 24853f710f
3 changed files with 75 additions and 0 deletions

View File

@@ -8,3 +8,6 @@ DB_SSL=false
# API
PORT=3000
# Anthropic (für Auto-Pairs-Generierung)
ANTHROPIC_API_KEY=sk-ant-...