Files
deepseek-harness/apps/web/tests/expected/models-settings/declared-edit.expected.md
T
Magolor 5249d9a4ce fix: prefer saved credentials and use environment keys in headless (#5483)
* ui: show locked API key environment reference

* fix(ui-settings-models): skip unused pi-ai credential reference

* fix(ui-settings-models): show active provider auth source

* test(llm): cover provider auth check failures

* docs(ui-settings-models): clarify active provider authentication

* test(web): update model key copy snapshots

* fix(ui-settings-models): clarify native authentication source hint

* fix: address PR 5483 review feedback

* docs(llm): state empty auth lookup behavior

* fix: refresh auth hints with credential snapshots

* fix: require credential refresh revision

* test: cover auth status projection

* fix: refresh catalog and browser expectations after rebase

* fix: keep auth status projection internal and explicit

* fix: preserve credential source checks with signed-in account rows

* test: pin Models authentication instead of inheriting host keys

* fix: prioritize stored credentials across providers

* fix: use one environment fallback hint

* docs: refresh credential contract

* docs: refresh config catalog

* test: align provider hint verification

* fix: use provider-native auth hints and endpoints

* fix: cover oauth-capable provider auth hints

* fix: show canonical endpoint defaults

* fix: avoid misleading endpoint fallback

* fix: label catalog endpoint defaults

* fix: shorten auth hints with hover details

* fix: clarify native auth resolution

* test: align DeepSeek endpoint hint

* fix: pair help button corner shape

* fix: address credential precedence review

Record the stored-credential precedence in a superseding Agent Note and
an upgrade guide, and align the credentials subsystem page, package
READMEs, and JSDoc with the order file > launch env > $cwd/.env >
$DSH_HOME/.env.

Report each pi-ai route's catalog endpoint and native-auth environment
names through the provider directory, check the names against the
installed pi-ai resolvers, and remove the llm/checkAuth and credential
describe operations that no Models page code calls.

Restore the route-derived key reference and the home expansion that
reads the home directory only for a leading ~.

* fix: clarify model authentication guidance

* fix: explain native provider OAuth requirements

* fix: keep authentication guidance method neutral

* fix: show credential reference source in model editor

* fix: use environment authentication in headless profile

* fix: validate headless authentication and current provider metadata

* test: retain authentication guidance coverage with account catalog updates

* test: retain writable Models credentials with the pinned environment
2026-10-13 10:10:06 +08:00

2.2 KiB

  • dialog "设置":
    • navigation:
      • text: 设置
      • button "通用设置"
      • button "模型"
      • button "内置插件"
      • button "Agent 预设"
    • button "打开配置文件"
    • button "关闭"
    • heading "模型" [level=2]
    • paragraph: 填入各提供商的 API 密钥即可使用其模型。
    • list:
      • listitem:
        • text: minimax-cn
        • img "API 密钥已配置"
        • button "编辑 minimax-cn": 编辑
        • button "删除 minimax-cn": 删除
      • listitem:
        • text: Acme Gateway 自定义
        • button "编辑 Acme Gateway (acme-gateway)": 编辑
        • button "删除 Acme Gateway (acme-gateway)": 删除
        • text: Acme Gateway acme-gateway API 密钥
        • textbox "API 密钥":
          • /placeholder: 输入 API 密钥
        • group:
          • text: 自定义设置 显示名称
          • textbox "显示名称":
            • /placeholder: acme-gateway
            • text: Acme Gateway
          • text: API 地址
          • textbox "API 地址":
          • text: API 协议
          • combobox "API 协议":
            • option "OpenAI Chat Completions" [selected]
            • option "OpenAI Responses"
            • option "Anthropic Messages"
          • region "模型目录":
            • text: 模型目录 已自定义模型目录
            • button "恢复默认模型"
            • button "获取可用模型"
            • textbox "模型 ID 1":
              • /placeholder: 模型 ID
              • text: acme-large
            • textbox "显示名称 1":
              • /placeholder: 显示名称
            • button "模型选项 1" [expanded]
            • button "删除模型 1"
            • text: 上下文窗口
            • textbox "上下文窗口 1":
              • /placeholder: 256K
            • text: 最大输出 token 数
            • textbox "最大输出 token 数 1":
              • /placeholder: 32K
            • group "输入类型 1":
              • text: 输入类型
              • checkbox "文本" [checked]
              • text: 文本
              • checkbox "图片" [checked]
              • text: 图片
            • button "添加模型"
        • button "取消"
        • button "保存"
    • button "添加模型提供商"