Repository navigation
fix(shared-adapter): 修正模型默认上下文容量 - #1068
Conversation
更新 packages/shared-adapter/src/client.ts 中的上下文表,补充 Gemma 4、Gemini 3/4、GLM-5.3、Kimi K3 及 Qwen3.5–3.8 主要官方型号的默认容量。 调整 Qwen2.5 的匹配顺序,避免被 Qwen2 提前命中;删除可由通用规则覆盖的 Gemini 2.0 Pro 冗余条目。
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
更新模型上下文长度映射 packages/shared-adapter/src/client.ts |
新增 Gemini 3/4、Gemma 4、GLM 5.3、Kimi K3 和多个 Qwen 3.5–3.8 型号的映射。调整 Gemini 3 的映射,并移除 Gemini 3.0 Pro、Gemini 3.1 Pro 和 Gemini 2.0 Pro 的单独条目。 |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: dingyi222666
Merge Risk: 
Minimal · up to d8156
-
The mapping changes are ready to merge with no identified correctness or availability risk.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed -
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
小兔捧来新映射,
Gemini 名单添几行。
Qwen 型号排成队,
上下文值写得详。
耳朵一竖,代码香。
Comment @coderabbitai help to get the list of available commands.
补充共享适配器的模型默认上下文容量,修正部分模型回退值不准确及匹配顺序问题。