Spaces:
Running
Running
Commit History
-
feat(api): mint per-user OpenAI Realtime ephemeral keys
New POST /api/openai/ephemeral endpoint: validates the caller's HF Bearer token via whoami-v2, rate-limits per HF user (60/hour default), and proxies POST /v1/realtime/sessions to OpenAI with the master OPENAI_API_KEY from the Space secrets. Lets the Reachy Mini mobile shell stop baking a long-lived OpenAI key into the distributed bundle (OpenAI ToS + extraction risk). Co-authored-by: Cursor <cursoragent@cursor.com>13ada57
-
feat(api): /api/js-apps with LLM-inferred categories
Add a curated route that filters the catalog to JS-embeddable apps (`reachy_mini_js_app` tag) and enriches each entry with categories inferred by Llama-3.1-8B-Instruct via HF Inference Providers, from a closed taxonomy of 8 slugs (music, dance, voice, storytelling, kids, vision, companion, dev-tools). Inference results are persisted in a HF dataset (`tfrere/reachy-mini-app-categories` by default, override via HF_CATEGORIES_DATASET) and re-loaded at boot, so cold starts only re-classify what actually changed (lastModified-keyed staleness). Pre-existing /api/apps payload is unchanged: this is purely additive. Mobile shell can adopt /api/js-apps incrementally. - server/categories.js: 8-slug taxonomy + LLM-friendly descriptions - server/categorize.js: README fetch/clean + chat-completion call - server/categoryCache.js: in-mem map + dataset commit/load - server/index.js: route, warmup batch, manual refresh endpoint - .env.example: HF_TOKEN + HF_CATEGORIES_DATASET docs - .gitignore: igno…0441ab1