feat(settings): clarify custom gateway format

This commit is contained in:
chengma
2026-07-21 09:49:22 +08:00
parent 3cd71b5285
commit 5b57a6c769
4 changed files with 35 additions and 5 deletions
+5 -2
View File
@@ -3,7 +3,7 @@ id: T-684
title: 明确自定义网关接口格式限制
phase: 5
deps: [T-680, T-681]
status: TODO
status: DONE
created: 2026-07-21
---
@@ -60,4 +60,7 @@ git diff --check
## 执行记录
- 待实现。
- 将自定义来源单选项和内部兼容下拉标签统一改为“自定义网关(仅支持 OpenAI 格式)”;配置值仍为 `direct`,保存成功状态仍使用简洁的“自定义网关”。
- 增加仅在 `direct` 选中时可见的说明“只有服务商明确说明‘支持 OpenAI 格式接口’时才选择此项。”,同时为单选项增加中文 tooltip;说明显隐不接入 dirty 信号。
- 更新设置路由说明及 GUI 回归,覆盖单选项文字、tooltip、默认/自定义来源说明显隐和既有切换保存行为。
- 验证通过:`py -3.10 -m unittest tests.test_gui`(213 项)、`py -3.10 -m unittest discover -s tests`(654 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。