feat: restore session-scoped /model switching in CLI and gateway#3700
Open
Git-on-my-level wants to merge 7 commits intoNousResearch:mainfrom
Open
feat: restore session-scoped /model switching in CLI and gateway#3700Git-on-my-level wants to merge 7 commits intoNousResearch:mainfrom
Git-on-my-level wants to merge 7 commits intoNousResearch:mainfrom
Conversation
(cherry picked from commit d584ecf)
- Add /model slash command to switch models per-session - Persist model/provider/base_url in session state - Support provider:model syntax (e.g., /model zai:glm-5.1) - List GLM models with /model zai - Session model persists across /new and auto-resets (cherry picked from commit 3adaff0)
(cherry picked from commit 3ecea87)
(cherry picked from commit b898ee6)
(cherry picked from commit 3e552a2)
(cherry picked from commit 5e18e6b)
(cherry picked from commit 3f860fd)
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
/modelcommand in the CLI and gateway, and keep model/provider/base_url overrides scoped to the active session/new, show it in session info/status output, and keep gateway fallback behavior saneprovider/modelinputs for direct providers like Codex and Z.AI, add GLM 5.1 support, and fix Z.AI's coding API base URLTest Plan
/Users/dazheng/.hermes/hermes-agent/venv/bin/python -m pytest tests/gateway/test_model_command.py tests/gateway/test_session_info.py tests/gateway/test_session_reset_notify.py tests/gateway/test_status_command.py tests/test_cli_prefix_matching.py tests/test_cli_new_session.py tests/hermes_cli/test_model_validation.py tests/hermes_cli/test_model_switch.py tests/test_api_key_providers.py tests/gateway/test_honcho_lifecycle.pyNotes
origin/mainand cherry-picks the relevant model-picker improvements from my own fork of hermeshermes modelglobal config change behavior