Skip to content

fix: update model version references in settings and tests#1022

Merged
ding113 merged 8 commits into
ding113:devfrom
ilnli:main
Apr 15, 2026
Merged

fix: update model version references in settings and tests#1022
ding113 merged 8 commits into
ding113:devfrom
ilnli:main

Conversation

@ilnli

@ilnli ilnli commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Update outdated model version references across i18n placeholder strings, provider API test defaults, and test fixtures to reflect current model versions.

Problem

Example model names used in UI placeholders and API test defaults referenced older model versions (e.g. claude-sonnet-4-5-20250929, gpt-5.1-codex, glm-4.6), making them inaccurate for current users and potentially confusing during provider setup.

Solution

Bulk update all model version references to current versions across all 5 supported languages and provider test code. No functional logic changes.

Changes

i18n Placeholder Updates (all 5 languages: en, ja, ru, zh-CN, zh-TW)

  • Model price form: gpt-5.2-codex / GPT-5.2 Codex -> gpt-5.3-codex / GPT-5.3 Codex
  • Model redirect descriptions: claude-sonnet-4.5 -> claude-sonnet-4.6
  • Model redirect source placeholder: claude-sonnet-4-5-20250929 -> claude-sonnet-4-6
  • Model redirect target placeholder: glm-4.6 -> glm-5.1
  • Model whitelist manual placeholder: gpt-5-turbo -> gpt-5.4-pro
  • Reasoning effort help text: updated GPT-5.1 / GPT-5.1-Codex-Max references to GPT-5.4 mini; xhigh is no longer model-restricted

Provider API Test Defaults (src/actions/providers.ts)

  • Anthropic Messages test default model: claude-sonnet-4-5-20250929 -> claude-sonnet-4-6
  • Anthropic Messages test user-agent: claude-cli/2.0.50 -> claude-cli/2.1.76
  • OpenAI Chat Completions test default model: gpt-5.1-codex -> gpt-5.3-codex
  • OpenAI Responses test default model: gpt-5.1-codex -> gpt-5.3-codex

Test Fixture Update

  • api-test-button.test.tsx: updated test fixture defaultModel to gpt-5.3-codex

Testing

Automated Tests

  • Existing test updated to match new default model value

Manual Testing

No manual testing required -- changes are limited to placeholder strings and test default values with no behavioral impact.

Checklist

  • Code follows project conventions
  • Self-review completed
  • Tests pass locally
  • i18n strings updated across all 5 languages

Description enhanced by Claude AI

Greptile Summary

This PR bulk-updates stale model version references across i18n placeholder strings (all 5 locales), provider API test defaults, and the reasoningEffort help text. The changes are documentation/UI-only with no functional logic impact.

  • Incomplete locale update (P1): The strings.json files for ja, ru, and zh-TW were skipped — each still holds the old claude-sonnet-4-5-20250929, glm-4.6, and gpt-5-turbo placeholder values, creating visible inconsistencies with the modelRedirect.json files that were updated for these same locales.
  • Uncompleted test fixture update (P2): The PR description and checklist claim api-test-button.test.tsx was updated to gpt-5.3-codex, but the file is unchanged and still reads gpt-5.1-codex; the test passes because the mock is asserted to not be called, but the stated change was not committed.

Confidence Score: 4/5

Do not merge until the missing strings.json updates for ja, ru, and zh-TW are added; the test fixture omission is minor but the PR description is misleading.

One real P1 finding: three locale strings.json files were skipped, leaving users in ja, ru, and zh-TW with inconsistent placeholder text between two UI panels for the same feature. The test fixture discrepancy is P2 (no runtime impact) but undermines the PR's stated completeness. All other changes are correct and internally consistent.

messages/ja/settings/providers/form/strings.json, messages/ru/settings/providers/form/strings.json, messages/zh-TW/settings/providers/form/strings.json — all require the same model-name placeholder updates applied to en and zh-CN.

Important Files Changed

Filename Overview
messages/ja/settings/providers/form/strings.json Not updated — still contains old model references (claude-sonnet-4-5-20250929, glm-4.6, gpt-5-turbo) that were updated in the parallel modelRedirect.json for this locale
messages/ru/settings/providers/form/strings.json Not updated — still contains old model references (claude-sonnet-4-5-20250929, glm-4.6, gpt-5-turbo) inconsistent with the updated modelRedirect.json for this locale
messages/zh-TW/settings/providers/form/strings.json Not updated — still contains old model references (claude-sonnet-4-5-20250929, glm-4.6, gpt-5-turbo) inconsistent with the updated modelRedirect.json for this locale
src/actions/providers.ts Default test models updated: Anthropic to claude-sonnet-4-6, OpenAI Chat/Responses to gpt-5.3-codex; user-agent bumped to claude-cli/2.1.76
messages/en/settings/providers/form/strings.json Placeholder model names updated to claude-sonnet-4-6, glm-5.1, and gpt-5.4-pro consistently
messages/zh-CN/settings/providers/form/strings.json Placeholder model names updated consistently across all relevant keys
messages/en/settings/providers/form/sections.json reasoningEffort help text updated: GPT-5.1 references replaced with GPT-5.4 mini; xhigh label no longer marked as model-restricted
messages/providers-i18n-additions.json zh-CN and en duplicate entries updated with new model placeholder names, consistent with locale-specific files

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[PR: Model version reference update] --> B[i18n placeholder strings]
    A --> C[Provider API test defaults]
    A --> D[reasoningEffort help text]

    B --> B1[prices.json
✅ all 5 locales updated]
    B --> B2[modelRedirect.json
✅ all 5 locales updated]
    B --> B3[strings.json
⚠️ only en + zh-CN updated
❌ ja / ru / zh-TW skipped]

    C --> C1[Anthropic Messages
claude-sonnet-4-5-20250929 → claude-sonnet-4-6
✅]
    C --> C2[OpenAI Chat + Responses
gpt-5.1-codex → gpt-5.3-codex
✅]
    C --> C3[api-test-button.test.tsx fixture
gpt-5.1-codex — NOT updated
⚠️ PR description incorrect]

    D --> D1[en / ja / ru / zh-CN / zh-TW sections.json
GPT-5.1 → GPT-5.4 mini
xhigh restriction removed
✅ all 5 locales updated]
Loading

Comments Outside Diff (3)

  1. messages/ja/settings/providers/form/strings.json, line 70-73 (link)

    P2 Stale model references in ja/ru/zh-TW strings.json files

    Three locale strings.json files were not updated alongside their modelRedirect.json counterparts, leaving them with old model version placeholders. The modelRedirectsSourcePlaceholder (line 70) and modelRedirectsTargetPlaceholder (line 73) still reference claude-sonnet-4-5-20250929 and glm-4.6 respectively.

    The same fields are stale in messages/ru/settings/providers/form/strings.json and messages/zh-TW/settings/providers/form/strings.json. The corresponding modelRedirect.json files for all three locales were correctly updated to claude-sonnet-4-6 / glm-5.1 in this PR.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: messages/ja/settings/providers/form/strings.json
    Line: 70-73
    
    Comment:
    **Stale model references in ja/ru/zh-TW `strings.json` files**
    
    Three locale `strings.json` files were not updated alongside their `modelRedirect.json` counterparts, leaving them with old model version placeholders. The `modelRedirectsSourcePlaceholder` (line 70) and `modelRedirectsTargetPlaceholder` (line 73) still reference `claude-sonnet-4-5-20250929` and `glm-4.6` respectively.
    
    The same fields are stale in `messages/ru/settings/providers/form/strings.json` and `messages/zh-TW/settings/providers/form/strings.json`. The corresponding `modelRedirect.json` files for all three locales were correctly updated to `claude-sonnet-4-6` / `glm-5.1` in this PR.
    
    
    
    How can I resolve this? If you propose a fix, please make it concise.
  2. messages/en/settings/providers/form/strings.json, line 168 (link)

    P2 sourceModelPlaceholder not updated in en but was updated in zh-CN

    The modelRedirectsSourcePlaceholder at line 70 of this file was correctly updated to claude-sonnet-4-6, but the sibling field sourceModelPlaceholder here (line 168) still reads e.g. claude-sonnet-4-5-20250929. The zh-CN counterpart (messages/zh-CN/settings/providers/form/strings.json line 25) was updated in this PR. If both fields describe the same concept, this one was missed.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: messages/en/settings/providers/form/strings.json
    Line: 168
    
    Comment:
    **`sourceModelPlaceholder` not updated in en but was updated in zh-CN**
    
    The `modelRedirectsSourcePlaceholder` at line 70 of this file was correctly updated to `claude-sonnet-4-6`, but the sibling field `sourceModelPlaceholder` here (line 168) still reads `e.g. claude-sonnet-4-5-20250929`. The zh-CN counterpart (`messages/zh-CN/settings/providers/form/strings.json` line 25) was updated in this PR. If both fields describe the same concept, this one was missed.
    
    
    
    How can I resolve this? If you propose a fix, please make it concise.
  3. messages/ja/settings/providers/form/strings.json, line 70-85 (link)

    P1 Missing model-name updates in ja/ru/zh-TW strings.json

    The strings.json files for ja, ru, and zh-TW were not included in this PR despite each of these locales having parallel entries that reference the old model names. The old values remain in all three files:

    Key Old value (still present) Expected new value
    modelRedirectsSourcePlaceholder claude-sonnet-4-5-20250929 claude-sonnet-4-6
    modelRedirectsTargetPlaceholder glm-4.6 glm-5.1
    modelWhitelistManualPlaceholder gpt-5-turbo gpt-5.4-pro
    sourceModelPlaceholder claude-sonnet-4-5-20250929 claude-sonnet-4-6
    targetModelPlaceholder glm-4.6 glm-5.1

    Users in the ja, ru, and zh-TW locales will see inconsistent placeholders — the modelRedirect panel shows updated model names while the strings-keyed UI sections still display the old ones. The same pattern appears in messages/ru/settings/providers/form/strings.json (lines 70, 73, 85, 168, 174) and messages/zh-TW/settings/providers/form/strings.json (lines 70, 73, 85, 168, 174).

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: messages/ja/settings/providers/form/strings.json
    Line: 70-85
    
    Comment:
    **Missing model-name updates in ja/ru/zh-TW strings.json**
    
    The `strings.json` files for `ja`, `ru`, and `zh-TW` were not included in this PR despite each of these locales having parallel entries that reference the old model names. The old values remain in all three files:
    
    | Key | Old value (still present) | Expected new value |
    |---|---|---|
    | `modelRedirectsSourcePlaceholder` | `claude-sonnet-4-5-20250929` | `claude-sonnet-4-6` |
    | `modelRedirectsTargetPlaceholder` | `glm-4.6` | `glm-5.1` |
    | `modelWhitelistManualPlaceholder` | `gpt-5-turbo` | `gpt-5.4-pro` |
    | `sourceModelPlaceholder` | `claude-sonnet-4-5-20250929` | `claude-sonnet-4-6` |
    | `targetModelPlaceholder` | `glm-4.6` | `glm-5.1` |
    
    Users in the `ja`, `ru`, and `zh-TW` locales will see inconsistent placeholders — the `modelRedirect` panel shows updated model names while the `strings`-keyed UI sections still display the old ones. The same pattern appears in `messages/ru/settings/providers/form/strings.json` (lines 70, 73, 85, 168, 174) and `messages/zh-TW/settings/providers/form/strings.json` (lines 70, 73, 85, 168, 174).
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: messages/ja/settings/providers/form/strings.json
Line: 70-85

Comment:
**Missing model-name updates in ja/ru/zh-TW strings.json**

The `strings.json` files for `ja`, `ru`, and `zh-TW` were not included in this PR despite each of these locales having parallel entries that reference the old model names. The old values remain in all three files:

| Key | Old value (still present) | Expected new value |
|---|---|---|
| `modelRedirectsSourcePlaceholder` | `claude-sonnet-4-5-20250929` | `claude-sonnet-4-6` |
| `modelRedirectsTargetPlaceholder` | `glm-4.6` | `glm-5.1` |
| `modelWhitelistManualPlaceholder` | `gpt-5-turbo` | `gpt-5.4-pro` |
| `sourceModelPlaceholder` | `claude-sonnet-4-5-20250929` | `claude-sonnet-4-6` |
| `targetModelPlaceholder` | `glm-4.6` | `glm-5.1` |

Users in the `ja`, `ru`, and `zh-TW` locales will see inconsistent placeholders — the `modelRedirect` panel shows updated model names while the `strings`-keyed UI sections still display the old ones. The same pattern appears in `messages/ru/settings/providers/form/strings.json` (lines 70, 73, 85, 168, 174) and `messages/zh-TW/settings/providers/form/strings.json` (lines 70, 73, 85, 168, 174).

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/actions/providers.ts
Line: 4046-4049

Comment:
**Test fixture not updated despite PR claim**

The PR description and checklist state that `tests/unit/settings/providers/api-test-button.test.tsx` was updated to replace `gpt-5.1-codex` with `gpt-5.3-codex`, but the file has no changes in this PR and still reads `defaultModel: "gpt-5.1-codex"` on line 83. The test still passes because the mock is asserted to NOT be called, so the stale value is never exercised — but the stated test update was not actually committed.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (2): Last reviewed commit: "Apply suggestions from code review" | Re-trigger Greptile

Copilot AI review requested due to automatic review settings April 15, 2026 02:47
@coderabbitai

coderabbitai Bot commented Apr 15, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e3d2b946-4fc0-4cde-9e9e-7c8af78e77ce

📥 Commits

Reviewing files that changed from the base of the PR and between 7425ddc and 88cdcb8.

📒 Files selected for processing (6)
  • messages/ja/settings/providers/form/modelRedirect.json
  • messages/providers-i18n-additions.json
  • messages/ru/settings/providers/form/modelRedirect.json
  • messages/zh-CN/settings/providers/form/modelRedirect.json
  • messages/zh-CN/settings/providers/form/strings.json
  • messages/zh-TW/settings/providers/form/modelRedirect.json
✅ Files skipped from review due to trivial changes (6)
  • messages/ru/settings/providers/form/modelRedirect.json
  • messages/zh-CN/settings/providers/form/strings.json
  • messages/providers-i18n-additions.json
  • messages/zh-CN/settings/providers/form/modelRedirect.json
  • messages/ja/settings/providers/form/modelRedirect.json
  • messages/zh-TW/settings/providers/form/modelRedirect.json

📝 Walkthrough

Walkthrough

此更新统一调整了多语言本地化字符串和测试配置中的模型标识示例(如 Claude Sonnet 4.5→4.6、GPT 5.2→5.3、GLM 4.6→5.1),并更新了 routing.codexOverrides.reasoningEffort 的兼容性说明。

Changes

Cohort / File(s) Summary
价格设置 - 本地化
messages/en/settings/prices.json, messages/ja/settings/prices.json, messages/ru/settings/prices.json, messages/zh-CN/settings/prices.json, messages/zh-TW/settings/prices.json
更新表单占位符示例:gpt-5.2-codexgpt-5.3-codex,显示名示例同步(GPT-5.2 CodexGPT-5.3 Codex)。
提供商表单 - modelRedirect 与 strings(多语言)
messages/en/settings/providers/form/modelRedirect.json, messages/en/settings/providers/form/strings.json, messages/ja/settings/providers/form/modelRedirect.json, messages/ru/settings/providers/form/modelRedirect.json, messages/zh-CN/settings/providers/form/modelRedirect.json, messages/zh-CN/settings/providers/form/strings.json, messages/zh-TW/settings/providers/form/modelRedirect.json
更新示例模型与占位符:claude-sonnet-4.5claude-sonnet-4-6,目标/上游示例 glm-4.6glm-5.1;并在若处新增/替换 gpt-5.4-pro 示例。
提供商表单 - routing.codexOverrides(多语言)
messages/en/settings/providers/form/sections.json, messages/ja/settings/providers/form/sections.json, messages/ru/settings/providers/form/sections.json, messages/zh-CN/settings/providers/form/sections.json, messages/zh-TW/settings/providers/form/sections.json
调整 help/option 文案:reasoningEffort.none 的兼容说明从 “GPT-5.1 only” 改为 “GPT-5.4 mini only”;xhigh 移除原先的模型专属说明(变为通用描述)。
多语言补充 i18n
messages/providers-i18n-additions.json
更新 zh-CN 与 en 的模型重定向与白名单占位符示例,保持键/结构不变。
测试提供商配置(TypeScript)
src/actions/providers.ts
测试默认模型/UA 更新:Anthropic 示例从 claude-sonnet-4-5-20250929claude-sonnet-4-6,userAgent 升级为 claude-cli/2.1.76 (external, cli);OpenAI 测试默认模型改为 gpt-5.3-codex

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed 标题准确概括了PR的主要变更——更新了设置和测试中过时的模型版本引用。
Description check ✅ Passed 描述详细说明了问题、解决方案和具体变更,与代码变更相关且信息充分。

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added enhancement New feature or request area:i18n area:provider size/L Large PR (< 1000 lines) labels Apr 15, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

This PR updates model version references across 18 i18n files, 1 source file, and 1 test file. The changes are mechanical string replacements bumping model names to newer versions (e.g., claude-sonnet-4.5 to 4.6, gpt-5.1-codex to gpt-5.3-codex). One minor inconsistency was found in the zh-CN locale.

PR Size: L

  • Lines changed: 124 (62 additions + 62 deletions)
  • Files changed: 20
  • Note: The L classification is driven by file count across 5 i18n locales. The actual change scope is small — no split is warranted.

Issues Found

Category Critical High Medium Low
Logic/Bugs 0 0 0 0
Security 0 0 0 0
Error Handling 0 0 0 0
Types 0 0 0 0
Comments/Docs 0 0 0 1
Tests 0 0 0 0
Simplification 0 0 0 0

High Priority Issues (Should Fix)

None.

Low Priority Issues

  1. messages/zh-CN/settings/providers/form/strings.json:23modelRedirectsDesc uses claude-sonnet-4-6 (hyphen) while all other locales and zh-CN files use claude-sonnet-4.6 (dot). This inconsistency was introduced by this PR (the old value used dot notation). See inline comment for suggested fix.

Review Coverage

  • Logic and correctness - Clean
  • Security (OWASP Top 10) - Clean
  • Error handling - Clean
  • Type safety - Clean
  • Documentation accuracy - 1 inconsistency (see above)
  • Test coverage - Test updated to match production code
  • Code clarity - Good

Automated review by Claude AI

"limitAmountMonthly": "月消费上限 (USD)",
"modelRedirects": "模型重定向",
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4.5)重定向到上游供应商实际支持的模型(如 glm-4.6、gemini-pro)。用于成本优化或接入第三方 AI 服务。",
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4-6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Low] [STANDARD-VIOLATION] Inconsistent model name format — uses hyphen (claude-sonnet-4-6) instead of dot (claude-sonnet-4.6)

Why this is a problem: Every other locale (en, ja, ru, zh-TW) and even the zh-CN modelRedirect.json and providers-i18n-additions.json files use claude-sonnet-4.6 (dot notation) in description text. This file alone uses claude-sonnet-4-6 (hyphen notation). The old value was claude-sonnet-4.5 (dot), so this inconsistency was introduced by this PR.

Suggested fix:

"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4.6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。"

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates model/version references used by provider API testing and the Settings UI (including i18n strings) to reflect newer default model IDs and examples.

Changes:

  • Bump default Codex model references from gpt-5.1-codex/gpt-5.2-codex to gpt-5.3-codex in provider API tests and related UI/test fixtures.
  • Update Anthropic Messages API test defaults (defaultModel, userAgent) and refresh model redirect examples/placeholders across locales.
  • Revise provider settings help text for reasoning-effort options across multiple languages.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
tests/unit/settings/providers/api-test-button.test.tsx Updates mocked preset default model used in unit tests.
src/actions/providers.ts Updates default models for provider connectivity tests and Anthropic UA.
messages/zh-TW/settings/providers/form/sections.json Updates reasoning-effort help/options text (zh-TW).
messages/zh-TW/settings/providers/form/modelRedirect.json Updates model redirect description/placeholders (zh-TW).
messages/zh-TW/settings/prices.json Updates price form placeholders to gpt-5.3-codex (zh-TW).
messages/zh-CN/settings/providers/form/strings.json Updates model redirect strings and placeholders (zh-CN).
messages/zh-CN/settings/providers/form/sections.json Updates reasoning-effort help/options text (zh-CN).
messages/zh-CN/settings/providers/form/modelRedirect.json Updates model redirect placeholders/description (zh-CN).
messages/zh-CN/settings/prices.json Updates price form placeholders to gpt-5.3-codex (zh-CN).
messages/ru/settings/providers/form/sections.json Updates reasoning-effort help/options text (ru).
messages/ru/settings/providers/form/modelRedirect.json Updates model redirect description/placeholders (ru).
messages/ru/settings/prices.json Updates price form placeholders to gpt-5.3-codex (ru).
messages/providers-i18n-additions.json Updates provider form i18n additions (zh-CN + en), including examples/placeholders.
messages/ja/settings/providers/form/sections.json Updates reasoning-effort help/options text (ja).
messages/ja/settings/providers/form/modelRedirect.json Updates model redirect description/placeholders (ja).
messages/ja/settings/prices.json Updates price form placeholders to gpt-5.3-codex (ja).
messages/en/settings/providers/form/strings.json Updates provider form strings (en), including model redirect examples/placeholders.
messages/en/settings/providers/form/sections.json Updates reasoning-effort help/options text (en).
messages/en/settings/providers/form/modelRedirect.json Updates model redirect description/placeholders (en).
messages/en/settings/prices.json Updates price form placeholders to gpt-5.3-codex (en).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread messages/en/settings/providers/form/strings.json Outdated
Comment thread messages/ru/settings/providers/form/modelRedirect.json Outdated
Comment thread messages/ja/settings/providers/form/modelRedirect.json Outdated
Comment thread messages/zh-CN/settings/providers/form/modelRedirect.json Outdated
Comment thread messages/providers-i18n-additions.json Outdated
Comment thread src/actions/providers.ts
Comment on lines 4022 to 4024
path: "/v1/messages",
defaultModel: "claude-sonnet-4-5-20250929",
defaultModel: "claude-sonnet-4-6",
headers: (apiKey, context) => resolveAnthropicAuthHeaders(apiKey, context.providerUrl),

Copilot AI Apr 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testProviderAnthropicMessages now falls back to defaultModel: "claude-sonnet-4-6", but the UI defaults (ApiTestButton) and other probe presets in the repo use date-suffixed Anthropic model IDs (e.g. claude-haiku-4-5-20251001, claude-sonnet-4-5-20250929). This mismatch can make the API test behave unexpectedly when the user clears the model field, and may fail against upstreams that require the full dated model ID. Consider reusing the same default model constant as the UI/presets (or switching this fallback back to a known dated ID) so all entry points are consistent.

Copilot uses AI. Check for mistakes.
Comment thread messages/en/settings/providers/form/modelRedirect.json Outdated
"deleteRule": "刪除規則",
"ruleMoved": "規則在編輯期間已變更,請再試一次",
"description": "將 Claude Code 客戶端請求的模型(如 claude-sonnet-4.5)重新導向到上游供應商實際支援的模型(如 glm-4.6、gemini-pro)。用於成本最佳化或接入第三方 AI 服務。",
"description": "將 Claude Code 客戶端請求的模型(如 claude-sonnet-4.6)重新導向到上游供應商實際支援的模型(如 glm-5.1、gemini-pro)。用於成本最佳化或接入第三方 AI 服務。",

Copilot AI Apr 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

描述中的模型示例使用「claude-sonnet-4.6」,但 sourcePlaceholder 使用「claude-sonnet-4-6」。兩者格式不一致,使用者照示例複製時可能導致規則無法命中。建議統一為同一種模型 ID 格式。

Copilot uses AI. Check for mistakes.
Comment thread messages/providers-i18n-additions.json Outdated

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates model version references and examples across various localization files and source code, transitioning from older versions like Claude 4.5 and GPT 5.2 to newer ones such as Claude 4.6 and GPT 5.3/5.4. It also updates the user agent string in provider actions and refines reasoning effort descriptions. Feedback was provided regarding a consistency issue in the Simplified Chinese translation where a dash was used instead of a dot for a model version.

Comment thread messages/zh-CN/settings/providers/form/strings.json
"limitAmountMonthly": "月消费上限 (USD)",
"modelRedirects": "模型重定向",
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4.5)重定向到上游供应商实际支持的模型(如 glm-4.6、gemini-pro)。用于成本优化或接入第三方 AI 服务。",
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4-6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Dash vs. dot inconsistency in zh-CN description

modelRedirectsDesc was changed to claude-sonnet-4-6 (hyphen-separated), while every other locale's equivalent description string — including the sibling messages/zh-CN/settings/providers/form/modelRedirect.json (line 31) — uses the dot-notation claude-sonnet-4.6. This creates an intra-locale inconsistency where the two zh-CN files describing the same feature use different formatting for the same model name.

Suggested change
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4-6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。",
"modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4.6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。",
Prompt To Fix With AI
This is a comment left during a code review.
Path: messages/zh-CN/settings/providers/form/strings.json
Line: 23

Comment:
**Dash vs. dot inconsistency in zh-CN description**

`modelRedirectsDesc` was changed to `claude-sonnet-4-6` (hyphen-separated), while every other locale's equivalent description string — including the sibling `messages/zh-CN/settings/providers/form/modelRedirect.json` (line 31) — uses the dot-notation `claude-sonnet-4.6`. This creates an intra-locale inconsistency where the two zh-CN files describing the same feature use different formatting for the same model name.

```suggestion
  "modelRedirectsDesc": "将 Claude Code 客户端请求的模型(如 claude-sonnet-4.6)重定向到上游供应商实际支持的模型(如 glm-5.1、gemini-pro)。用于成本优化或接入第三方 AI 服务。",
```

How can I resolve this? If you propose a fix, please make it concise.

ilnli and others added 4 commits April 15, 2026 10:54
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment thread messages/zh-TW/settings/providers/form/modelRedirect.json Outdated
Comment thread messages/zh-CN/settings/providers/form/strings.json Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ding <44717411+ding113@users.noreply.github.com>
@ding113
ding113 changed the base branch from main to dev April 15, 2026 03:04
@ding113
ding113 merged commit f279e50 into ding113:dev Apr 15, 2026
1 of 2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Claude Code Hub Roadmap Apr 15, 2026
@github-actions github-actions Bot mentioned this pull request Apr 19, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:i18n area:provider enhancement New feature or request size/L Large PR (< 1000 lines)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants