Files
deepseek-harness/apps/web/tests/snapshots/onboarding-deepseek-config/models.expected.md
T
Yichen Jiang 2dc1406dfd feat(ui-models): drop the provider-scoped reasoning effort, and red-flag a bad route id
**Reasoning effort leaves the provider cards entirely.** It is a per-MODEL
capability and the models under one provider disagree about which levels
they accept: setting `anthropic` to `max` made six of its eight models
throw UNSUPPORTED_REASONING_EFFORT, and because the catalog build catches
per provider, the whole provider vanished from the picker behind one error
row. A provider-scoped control can only ever be set to a value some of its
models reject.

The composer's model picker already offers each model its own levels, and
a switch there now records provider, model, and effort together as the
next session's default — so the setting has a better home at the right
granularity. The profile field stays in `settings.yaml` for a deployment
that knows its route; only the control is gone, from both cards and both
adapter families. Two `components.spec` cases used the control as the
vehicle for their op assertions and now use `baseURL`, which is what they
were actually testing.

**A rejected Provider ID now reads as a fault.** It shared the neutral
hint paragraph with the field's guidance, so the copy telling the user
what they got wrong looked like advice. Reuses the existing `.error`
style, matching the split the key field already makes.
2026-08-07 17:36:08 +08:00

2.1 KiB

  • dialog "设置":
    • navigation:
      • text: 设置
      • button "通用设置":
        • img
        • text: 通用设置
      • button "模型":
        • img
        • text: 模型
    • button "打开配置文件"
    • button "关闭":
      • img
      • text: 关闭
    • heading "模型" [level=2]
    • paragraph: 填入各提供方的 API 密钥即可使用其模型。
    • list:
      • listitem:
        • text: DeepSeek
        • img "API 密钥已配置"
        • button "编辑 DeepSeek (deepseek-official)": 编辑
        • text: DeepSeek deepseek-official API 密钥
        • textbox "API 密钥":
          • /placeholder: 已配置——输入新值可替换
        • group:
          • text: 自定义设置 API 地址
          • textbox "API 地址":
          • region "模型目录":
            • text: 模型目录 已自定义模型目录
            • button "恢复默认模型"
            • textbox "模型 ID 1":
              • /placeholder: 模型 ID
              • text: deepseek-v4-pro
            • textbox "显示名称 1":
              • /placeholder: 显示名称
              • text: DeepSeek-V4-Pro
            • button "容量 1":
              • img
            • button "删除模型 1":
              • img
            • textbox "模型 ID 2":
              • /placeholder: 模型 ID
              • text: private-preview
            • textbox "显示名称 2":
              • /placeholder: 显示名称
              • text: Private Preview
            • button "容量 2" [expanded]:
              • img
            • button "删除模型 2":
              • img
            • text: 上下文窗口
            • textbox "上下文窗口 2":
              • /placeholder: 1M
              • text: "131072"
            • text: 最大输出 token 数
            • textbox "最大输出 token 数 2":
              • /placeholder: 256K
              • text: 64K
            • button "添加模型":
              • img
              • text: 添加模型
        • button "取消"
        • button "保存"
    • button "添加提供方":
      • img
      • text: 添加提供方
    • button "添加自定义提供方":
      • img
      • text: 添加自定义提供方