Repository navigation
fix(i18n): clarify thinking adapter copy - #5242
Conversation
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
WalkthroughThis PR updates UI labels and i18n translations across both classic and default web interfaces to clarify Anthropic thinking suffix adapter terminology. Labels change from "Thinking Adapter" to "Thinking Suffix Adapter", and blacklist descriptions are rephrased to emphasize ChangesThinking Suffix Adapter Terminology Alignment
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/default/src/i18n/locales/fr.json`:
- Line 2392: Update the French translations to keep the literal suffixes
"-thinking" and "-nothinking" visible instead of translating them as the generic
word "thinking"; specifically change the value for the key "Models that skip
thinking suffix processing" and the other affected entry (line ~3930) so they
reference the exact suffixes (e.g., "Modèles qui n’appliquent pas
automatiquement les suffixes -thinking/-nothinking") or similar wording that
preserves the literal suffix tokens.
In `@web/default/src/i18n/locales/ru.json`:
- Line 2392: The Russian translation for the key "Models that skip thinking
suffix processing" removed the literal hyphenated suffix notation; update the
value to preserve and display the exact suffixes (e.g., "-thinking" /
"-nothinking") in the Russian label so it reads as an explicit suffix handling
note (also apply the same fix to the other occurrence of this label around the
later duplicate at the other key). Ensure the translated sentence includes the
hyphen-prefixed tokens exactly as `-thinking` and `-nothinking` to match the
source intent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d24b9bcd-130d-441a-b2ca-b29d7308d41b
📒 Files selected for processing (10)
web/classic/src/pages/Setting/Model/SettingGlobalModel.jsxweb/default/src/features/system-settings/models/claude-settings-card.tsxweb/default/src/features/system-settings/models/gemini-settings-card.tsxweb/default/src/features/system-settings/models/global-settings-card.tsxweb/default/src/i18n/locales/en.jsonweb/default/src/i18n/locales/fr.jsonweb/default/src/i18n/locales/ja.jsonweb/default/src/i18n/locales/ru.jsonweb/default/src/i18n/locales/vi.jsonweb/default/src/i18n/locales/zh.json
| "Models losing the most positions": "Modèles qui perdent le plus de places", | ||
| "Models not in list, may fail to invoke": "Modèles non listés, peut échouer lors de l'invocation", | ||
| "Models that are being used but not configured in the system": "Modèles utilisés mais non configurés dans le système", | ||
| "Models that skip thinking suffix processing": "Modèles qui ignorent le traitement des suffixes thinking", |
There was a problem hiding this comment.
Keep the literal suffixes in the French labels.
Line 2392 and Line 3930 reintroduce ambiguity by translating the feature as generic thinking instead of naming the actual -thinking / -nothinking suffix handling. That weakens the clarification this PR is meant to ship. Consider wording that keeps the literal suffixes visible, e.g. Adaptateur de suffixes -thinking/-nothinking and Modèles qui n’appliquent pas automatiquement les suffixes -thinking/-nothinking.
Also applies to: 3930-3930
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/default/src/i18n/locales/fr.json` at line 2392, Update the French
translations to keep the literal suffixes "-thinking" and "-nothinking" visible
instead of translating them as the generic word "thinking"; specifically change
the value for the key "Models that skip thinking suffix processing" and the
other affected entry (line ~3930) so they reference the exact suffixes (e.g.,
"Modèles qui n’appliquent pas automatiquement les suffixes
-thinking/-nothinking") or similar wording that preserves the literal suffix
tokens.
| "Models losing the most positions": "Модели, потерявшие больше всего позиций", | ||
| "Models not in list, may fail to invoke": "Модели не в списке, вызов может не сработать", | ||
| "Models that are being used but not configured in the system": "Модели, которые используются, но не настроены в системе", | ||
| "Models that skip thinking suffix processing": "Модели, пропускающие обработку суффиксов thinking", |
There was a problem hiding this comment.
Keep the literal suffix notation in these Russian labels.
Both translations drop the hyphenated suffix wording from the source, so the UI reads like generic “thinking” behavior again instead of explicit -thinking / -nothinking suffix handling. That weakens the clarification this PR is trying to make.
Suggested wording
- "Models that skip thinking suffix processing": "Модели, пропускающие обработку суффиксов thinking",
+ "Models that skip thinking suffix processing": "Модели, для которых пропускается обработка суффиксов `-thinking` / `-nothinking`",
- "Thinking Suffix Adapter": "Адаптер суффикса thinking",
+ "Thinking Suffix Adapter": "Адаптер суффиксов `-thinking`"Also applies to: 3930-3930
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/default/src/i18n/locales/ru.json` at line 2392, The Russian translation
for the key "Models that skip thinking suffix processing" removed the literal
hyphenated suffix notation; update the value to preserve and display the exact
suffixes (e.g., "-thinking" / "-nothinking") in the Russian label so it reads as
an explicit suffix handling note (also apply the same fix to the other
occurrence of this label around the later duplicate at the other key). Ensure
the translated sentence includes the hyphen-prefixed tokens exactly as
`-thinking` and `-nothinking` to match the source intent.
… id 等) 主要变更(QuantumNous/new-api → adc390c): - feat: 渠道被禁用后可配置是否清空渠道粘性 (QuantumNous#5306) - feat(web): profile 页显示 user id (QuantumNous#5317) - fix: 复用 channel handler 的 stream scanner buffer (QuantumNous#5225) - fix: 收窄 OpenAI o 系列模型适配范围 (QuantumNous#5293) - fix(relay): GLM Anthropic 兼容避免 chunked encoding (QuantumNous#5307) - fix: 新增 relay idle 连接超时配置 (QuantumNous#5309) - fix: 限制匿名请求体大小 (QuantumNous#5244) - fix(distributor): 修复 video generations task_id 模型解析 (QuantumNous#5133) - fix(dify): 远程图片字段赋值前初始化 file pointer (QuantumNous#5134) - fix(i18n): 优化 thinking adapter 文案 (QuantumNous#5242) 去合规一致性:上游未触及任何合规文件,合并完整保留本地去合规状态 (payment_setting.go / payment-settings-section.tsx / recharge-form-card.tsx / risk-acknowledgement-dialog.tsx 均未被改动)。 i18n:web/default 6 语言(en/zh/fr/ja/ru/vi)key 并集三路合并 + i18n:sync 规范化,4584 keys/语言,missing/extras/untranslated 全为 0。 验证:go build ./... ✅ + bun run typecheck ✅
Cherry-picked from main branch with conflict resolution: - Updated "Thinking Adapter" to "Thinking Suffix Adapter" - Updated "Disable thinking processing models" to "Models that skip thinking suffix processing" - Improved description text for better clarity - Resolved conflicts by keeping dev branch layout while applying new i18n keys
…codes * origin/main: (45 commits) fix(openai): support streaming image relay and image edit for images API (QuantumNous#4608) perf(web): improve dialog sizing and footer layout feat(web): add shared dialog wrapper perf(web): simplify public page hero copy perf(model-pricing): move pricing tabs into page title feat(json-editor): add reusable JSON code editor perf(model-pricing): improve JSON pricing editor layout perf(model-pricing): reduce duplicate model name display fix: support six-decimal steps in model pricing editor fix: respect theme for multiselect combobox popover fix: reuse stream scanner buffer in channel handlers (QuantumNous#5225) fix: 收窄 OpenAI o 系列模型适配范围 (QuantumNous#5293) fix(i18n): clarify thinking adapter copy (QuantumNous#5242) fix: limit anonymous request body (QuantumNous#5244) fix(relay): fix Anthropic-compatible compatibility for GLM (avoid chunked encoding) (QuantumNous#5307) feat: 支持配置渠道被禁用后是否清空渠道粘性 (QuantumNous#5306) fix: add relay idle connection timeout config (QuantumNous#5309) feat(web): show user id on profile page perf(model-pricing): refine visual editor actions refactor(model-pricing): split visual pricing editor modules ... # Conflicts: # router/api-router.go # web/default/src/features/usage-logs/components/usage-logs-mobile-card.tsx
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
- update the global thinking blacklist label to describe skipped suffix processing instead of disabled model thinking. - rename Claude and Gemini adapter labels to thinking suffix adapter and sync all default locales. - revise Claude helper text to clarify suffix request adaptation while keeping billing predictable.
Important
📝 变更描述 / Description
(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)
问题描述
修复方式
Thinking Adaptersource key 改为Thinking Suffix Adapter,中文翻译为“思考后缀适配器”。测试说明
bun run i18n:sync,所有 locale 的 missing、extras、untranslated 计数均为 0。bun run build:check失败在既有的usage-logs-mobile-card.tsx类型错误,和本次文案改动无关。🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit