Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(frontend): 补充 Claude Sonnet 5 模型状态别名 - #5008

#5008
Merged
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
Jul 29, 2026
Merged

fix(frontend): 补充 Claude Sonnet 5 模型状态别名#5008
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

@hansnow

@hansnow hansnow commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

问题

账号列表的模型限流状态会通过短别名展示 Claude 模型。claude-opus-5 已映射为 COpus5,但 claude-sonnet-5 缺少映射,页面会回退显示完整模型 ID。

改动

  • 新增 claude-sonnet-5CSon5 的状态短别名,与现有 CSon46CSon45 命名保持一致。
  • 补充组件回归测试,同时覆盖 COpus5CSon5 的展示。

验证

  • pnpm test:run src/components/account/__tests__/AccountStatusIndicator.spec.ts
  • pnpm typecheck
  • pnpm exec eslint src/components/account/AccountStatusIndicator.vue src/components/account/__tests__/AccountStatusIndicator.spec.ts
  • git diff --check

@Wei-Shaw
Wei-Shaw merged commit f2d8248 into Wei-Shaw:main Jul 29, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.