-
-
Notifications
You must be signed in to change notification settings - Fork 2k
fix: resolve /model command misleading behavior when switching to model from different provider #5578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zouyonghe
merged 28 commits into
AstrBotDevs:master
from
pandyzhou:fix/model-command-cross-provider-misleading
Mar 1, 2026
Merged
fix: resolve /model command misleading behavior when switching to model from different provider #5578
Changes from 5 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e570469
fix: /model command now auto-switches provider when model exists else…
pandyzhou ec7995e
fix: address Sourcery review - log get_models() failures in cross-pro…
pandyzhou f9cd842
fix: integer branch exception handling and API key masking in model c…
pandyzhou 83fb0e8
fix: harden cross-provider model resolution
zouyonghe 4d5c8ae
fix: improve model lookup resilience and cache hygiene
zouyonghe 5371267
refactor: simplify model switch lookup flow
zouyonghe 281c44f
refactor: streamline provider model cache updates
zouyonghe ba1b1ff
fix: align provider annotations and key error flow
zouyonghe d062abf
fix: narrow provider command exception handling
zouyonghe 1d611d4
refactor: harden provider command error redaction and flow
zouyonghe 5293aef
fix: improve provider model lookup and secret redaction
zouyonghe 418a405
refactor: cache normalized model names in provider lookup
zouyonghe abe31a3
refactor: simplify provider model lookup helpers
zouyonghe 34235c6
refactor: extract provider model lookup helpers
zouyonghe 40b7fd3
fix: harden provider lookup cancellation and redaction
zouyonghe cf7da2f
refactor: streamline provider cache and lookup settings
zouyonghe 5aeccbb
refactor: simplify provider command setting and update helpers
zouyonghe 747bede
refactor: streamline provider model lookup config usage
zouyonghe 9059c1b
refactor: flatten provider lookup settings and filter model lookup pr…
zouyonghe b76ba0c
refactor: simplify provider cache and callback flow
zouyonghe f139be7
refactor: simplify provider command model cache flow
zouyonghe 086a11e
refactor: scope provider model cache by session
zouyonghe 597690e
fix: preserve redaction context and restore provider hooks
zouyonghe 9c5f31f
refactor: unify provider model lookup config flow
zouyonghe 161763e
refactor: inline provider model cache access flow
zouyonghe 7d1f642
fix: align provider lookup cache and callback semantics
zouyonghe a9f1558
refactor: centralize provider model fetch error handling
zouyonghe 343d277
refactor: simplify provider model cache and lookup flow
zouyonghe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.