Files
LegGasai 49d1474b7a feat(ui-settings-models): fold model rows to text and split the editor into sections
The provider editor nested three frames, kept the model list inside the
same fold as the endpoint and retry fields, and showed every model as a
pair of inputs behind a drag handle whose tooltip covered the model ID.

- An edited provider row is the editing surface itself, under its own
  name; the editor no longer repeats the name, and Cancel closes it.
- The model list is its own section, unfolded by default. The endpoint,
  retry policy, and a declared route's name and protocol move to a
  folded "Advanced settings" section.
- A folded model row is one line of text and is dragged as a whole to
  reorder; the handle and keyboard reordering are removed. Unfolding
  shows the fields in two equal columns, and a newly added row starts
  unfolded.
- The Cancel and Apply row stays at the page's scroll edge and carries
  the notes that explain a blocked or refused save.
- The create form pairs Provider ID with the display name and the
  protocol with the endpoint.
- An installed catalog route with no list of its own states that it
  serves the whole built-in catalog instead of two contradicting lines;
  a missing key is worded beside its dot.

The provider-card slot now renders before the editor in the setup card
and the add card, as it already did in a provider row, so the action
row ends every card.
2026-11-20 12:41:43 +08:00

2.2 KiB

  • dialog "设置":
    • text: 设置
    • navigation:
      • button "通用设置"
      • button "模型"
      • button "插件管理"
      • button "Agent 预设"
      • button "远程连接"
    • button "打开配置文件"
    • button "关闭"
    • heading "模型" [level=2]
    • paragraph: 填入各提供商的 API 密钥即可使用其模型。
    • list
    • tablist "添加方式":
      • tab "第三方模型提供商" [selected]
      • tab "自定义模型 API"
    • paragraph: 从内置目录中选择 OpenAI、Anthropic、Kimi 等提供商,填入其 API 密钥即可使用。
    • tabpanel "第三方模型提供商":
      • text: 提供商
      • combobox "提供商":
        • option "amazon-bedrock"
        • option "ant-ling"
        • option "anthropic"
        • option "azure"
        • option "baseten"
        • option "cerebras"
        • option "cloudflare-ai-gateway"
        • option "cloudflare-workers-ai"
        • option "deepseek"
        • option "fireworks"
        • option "github-copilot"
        • option "google"
        • option "google-vertex"
        • option "groq"
        • option "huggingface"
        • option "kimi-coding"
        • option "meta"
        • option "minimax"
        • option "minimax-cn"
        • option "mistral"
        • option "moonshotai"
        • option "moonshotai-cn"
        • option "nvidia"
        • option "openai"
        • option "openai-codex" [selected]
        • option "opencode"
        • option "opencode-go"
        • option "openrouter"
        • option "qwen-token-plan"
        • option "qwen-token-plan-cn"
        • option "qwen-token-plan-individual"
        • option "radius"
        • option "together"
        • option "vercel-ai-gateway"
        • option "xai"
        • option "xiaomi"
        • option "xiaomi-token-plan-ams"
        • option "xiaomi-token-plan-cn"
        • option "xiaomi-token-plan-sgp"
        • option "zai"
        • option "zai-coding-cn"
      • region "模型":
        • button "模型" [expanded]
        • button "获取可用模型"
        • paragraph: 正在使用内置目录的全部模型;挑选或添加模型后,只提供列表中的模型
        • button "添加模型"
      • region "高级设置":
        • button "高级设置"
      • button "取消"
      • button "保存"