Add admin settings API for AI key configuration #56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
AI keys (Groq, OpenRouter, SambaNova) are only configurable via env vars sourced from
~/hero/cfg/env/env.sh. No runtime API exists to read or update them.Goals
admin.settings.getRPC: returns masked key status per provider and embedder URLadmin.settings.setRPC: updates keys, persists to~/hero/var/hero_books/settings.toml, applies to process env