mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
* fix(minimax-oauth): refresh short-lived access tokens per request MiniMax OAuth issues ~15-minute access tokens. The Anthropic SDK caches api_key as a static string at client construction, so a session that resolves credentials once at startup keeps sending the same bearer until MiniMax returns 401 mid-session. Swap the static string for a callable token provider, reusing the existing Entra-ID bearer-hook infrastructure in build_anthropic_client. The callable re-reads auth.json on each invocation and calls _refresh_minimax_oauth_state, which is a no-op when the token still has more than 60s of life left and refreshes proactively otherwise. Refreshes persist to auth.json so other processes (gateway, cron) see them immediately. The wire-up lives at the agent-init / model-switch boundary rather than in resolve_runtime_provider, so aux client paths that hand the api_key string to OpenAI(api_key=...) are unaffected. * docs: add infographic for minimax-oauth token refresh |
||
|---|---|---|
| .. | ||
| aux-picker-parity | ||
| bitwarden-secrets-manager | ||
| minimax-oauth-token-refresh | ||
| pr-8056-hash-pairing-codes | ||
| pr-8306-hmac-bypass | ||
| pr-14157-control-plane-write-deny | ||
| pr-27612-nous-url-allowlist | ||
| pr-30591-discord-plugin-migration | ||
| pr27784-anthropic-refactor | ||
| pr30609-termux-cold-start | ||
| skill-scanner-no-ghost-skills | ||