Skip to content

feat(slash): /model returns numbered menu of usable models - #1902

Closed
debugforyou wants to merge 1 commit into
TencentCloud:developfrom
debugforyou:feat/model-menu-develop
Closed

debugforyou wants to merge 1 commit into
TencentCloud:developfrom
debugforyou:feat/model-menu-develop

Conversation

@debugforyou

Copy link
Copy Markdown
  • Bare /model now enumerates all usable provider/model refs (same source as runtime usability checks: iter_usable_rows + is_chat_eligible_model) and caches a numbered menu per session (10-minute TTL, one-shot).
  • /model resolves the cached menu entry and falls through to the existing set_thread_model_override path; direct /model <provider/model> and /model reset are unchanged.
  • Fix misleading zh/en usage text: provider:model -> <provider/model>.
  • Add zh/en menu strings: menu_header / menu_current / menu_footer.

Summary

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally
  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

- Bare /model now enumerates all usable provider/model refs (same
  source as runtime usability checks: iter_usable_rows +
  is_chat_eligible_model) and caches a numbered menu per session
  (10-minute TTL, one-shot).
- /model <number> resolves the cached menu entry and falls through to
  the existing set_thread_model_override path; direct /model
  <provider/model> and /model reset are unchanged.
- Fix misleading zh/en usage text: <provider:model> -> <provider/model>.
- Add zh/en menu strings: menu_header / menu_current / menu_footer.
@debugforyou
debugforyou deleted the feat/model-menu-develop branch October 15, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant