mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
The Models editor card curated its pi-ai fields by what every route has, so `displayName` and `api` — the two a hand-declared route names for itself — were asked for at creation and then reachable only through settings.yaml. The editor now renders both for a route the directory reports as declared, from the same namespace schema the create card reads. A catalog route gets neither: it defaults its name from its catalog entry, and its models each carry their own protocol, so a route-level one could only override all of them. Clearing the name unsets it and the route falls back to its id, which is what the field's placeholder shows; storing the empty string would be refused by the adapter. A declared profile naming no protocol selects nothing rather than reading as if it had picked the first choice. The Provider ID stays fixed: it is the settings dict key, it is referenced from `agent-default-model` and every logged request header, and it is the stem of a credential reference the page can never read back to move. Fixes #2204
66 lines
2.1 KiB
Markdown
66 lines
2.1 KiB
Markdown
- dialog "设置":
|
|
- navigation:
|
|
- text: 设置
|
|
- button "通用设置":
|
|
- img
|
|
- text: 通用设置
|
|
- button "模型":
|
|
- img
|
|
- text: 模型
|
|
- button "Agent 预设":
|
|
- img
|
|
- text: Agent 预设
|
|
- button "打开配置文件"
|
|
- button "关闭":
|
|
- img
|
|
- text: 关闭
|
|
- 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 地址":
|
|
- /placeholder: https://gateway.acme.example/v1
|
|
- text: https://gateway.acme.example/v1
|
|
- text: API 协议
|
|
- combobox "API 协议":
|
|
- option "openai-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"
|
|
- button "删除模型 1"
|
|
- button "添加模型"
|
|
- button "取消"
|
|
- button "保存"
|
|
- button "添加提供方":
|
|
- img
|
|
- text: 添加提供方
|
|
- button "添加自定义提供方":
|
|
- img
|
|
- text: 添加自定义提供方
|