mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(hermes_cli): keep TTS/setup xAI OAuth from switching active chat provider
Save side-tool OAuth tokens without promoting xai-oauth via active_provider or model.provider so hermes setup tts login no longer hijacks inference routing.
This commit is contained in:
parent
a54067a6fd
commit
fce06e909d
5 changed files with 134 additions and 6 deletions
|
|
@ -11153,6 +11153,9 @@ def _xai_device_poller(session_id: str) -> None:
|
|||
discovery=discovery,
|
||||
last_refresh=datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"),
|
||||
auth_mode="oauth_device_code",
|
||||
# Dashboard OAuth only bootstraps credentials for side tools;
|
||||
# do not hijack the active chat inference provider.
|
||||
set_active=False,
|
||||
)
|
||||
# The singleton write above is the single source of truth: the
|
||||
# credential-pool load seeds it as the canonical ``device_code``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue