fix: 模型级强制参数(kimi-k2.7-code 锁 temperature=1)+ 测速超时/错误文案
- config: ModelInfo.params + MODEL_PARAM_KEYS 白名单 + _parse_model_params(写错即 ConfigError) - adapters: _forced_params 在 payload 组装后强制覆盖;_learn_from_upstream_error 按上游 400 要求修正并重发一次(非原样重试);流式已吐内容则不重发 - main: /v1/models 暴露 params;探针超时 15s→30s;_speedtest_error_text 说清超时/上游原文 - settings: 面板保存保留手写 models[].params(原先会被静默清掉) - gateway.yaml: kimi-k2.7-code params.temperature=1 - 前端: Models 挂锁+参数固定标签;Chat 温度 chip 挂锁+抽屉提示;新增 lock 图标;中英对称 - tests: +10 → 168 passed / 0 failed
This commit is contained in:
1 parent
1b1d564f44
commit
2e9680de82
14 files changed
+631
-13
No files matched your search
@@ -86,6 +86,12 @@ providers:
|
||||
- id: "kimi-k2.7-code"
|
||||
display_name: "Kimi K2.7 Code"
|
||||
type: "text"
|
||||
# 上游硬约束:该模型**只接受 temperature=1**,传 0 / 0.7 等一律 400
|
||||
# "invalid temperature: only 1 is allowed for this model"。
|
||||
# 写死后网关无论收到什么温度都按 1 发(前端温度滑块、API 传参、一键测速探针
|
||||
# 统一生效);客户端不传 temperature 时也会显式按 1 发送,与上游默认值一致。
|
||||
params:
|
||||
temperature: 1
|
||||
- id: "kimi-k2.6"
|
||||
display_name: "Kimi K2.6"
|
||||
type: "text"
|
||||
|
||||
Reference in new issue
Block a user