fix(frontend): 补充 Claude Sonnet 5 模型状态别名 - #5008
#5008Merged
Wei-Shaw merged 1 commit intoJul 29, 2026
Wei-Shaw:mainWei-Shaw/sub2api:mainfrom
hansnow:fix/claude-sonnet-5-status-aliashansnow/sub2api:fix/claude-sonnet-5-status-aliasCopy head branch name to clipboard
Merged
fix(frontend): 补充 Claude Sonnet 5 模型状态别名#5008Wei-Shaw merged 1 commit intoWei-Shaw:mainWei-Shaw/sub2api:mainfrom hansnow:fix/claude-sonnet-5-status-aliashansnow/sub2api:fix/claude-sonnet-5-status-aliasCopy head branch name to clipboard
Wei-Shaw merged 1 commit into
Wei-Shaw:mainWei-Shaw/sub2api:mainfrom
hansnow:fix/claude-sonnet-5-status-aliashansnow/sub2api:fix/claude-sonnet-5-status-aliasCopy head branch name to clipboard
Conversation
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
问题
账号列表的模型限流状态会通过短别名展示 Claude 模型。
claude-opus-5已映射为COpus5,但claude-sonnet-5缺少映射,页面会回退显示完整模型 ID。改动
claude-sonnet-5→CSon5的状态短别名,与现有CSon46、CSon45命名保持一致。COpus5和CSon5的展示。验证
pnpm test:run src/components/account/__tests__/AccountStatusIndicator.spec.tspnpm typecheckpnpm exec eslint src/components/account/AccountStatusIndicator.vue src/components/account/__tests__/AccountStatusIndicator.spec.tsgit diff --check