Both editors live in `ui-models` and list the same thing, so they now share one row shape rather than diverging when #1368 lands: a bordered entry per model, id and display name on the row, and the capacities behind the row's own disclosure. The context window is joined there by the per-model output cap the adapter just gained; both read a decimal K/M suffix. The shared class names carry this file's token spellings, not that branch's. `--dsw-alias-border-subtle`, `--dsw-alias-text-tertiary`, and `--dsw-alias-text-primary` are undeclared, so they resolve to the light-mode literals in their fallback slots — the defect this section was moved off. A styles test now rejects any `--dsw-*` name the token sheet does not declare, so the next editor to name one fails instead of shipping a light-only surface. The keystroke buffer is now per capacity field rather than per row, since a row holds two of them.
71 lines
2.1 KiB
Markdown
71 lines
2.1 KiB
Markdown
- dialog "设置":
|
|
- navigation:
|
|
- text: 设置
|
|
- button "通用设置":
|
|
- img
|
|
- text: 通用设置
|
|
- button "模型":
|
|
- img
|
|
- text: 模型
|
|
- button "关闭":
|
|
- img
|
|
- text: 关闭
|
|
- heading "模型" [level=2]
|
|
- paragraph: 填入各提供方的 API 密钥即可使用其模型。
|
|
- list:
|
|
- listitem:
|
|
- text: DeepSeek
|
|
- button "编辑"
|
|
- text: DeepSeek deepseek-official API 密钥
|
|
- textbox "API 密钥":
|
|
- /placeholder: 已配置——输入新值可替换
|
|
- group:
|
|
- text: 自定义设置 API 地址
|
|
- textbox "API 地址":
|
|
- /placeholder: https://api.deepseek.com
|
|
- text: 推理强度
|
|
- combobox "推理强度":
|
|
- option "默认" [selected]
|
|
- option "off"
|
|
- option "high"
|
|
- option "max"
|
|
- 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: 添加提供方
|