diff --git a/serve/frontend/src/pages/settings/AI.tsx b/serve/frontend/src/pages/settings/AI.tsx index 1cfd315..8fd731e 100644 --- a/serve/frontend/src/pages/settings/AI.tsx +++ b/serve/frontend/src/pages/settings/AI.tsx @@ -19,7 +19,6 @@ const CUSTOM_CODEX_MODEL = '__custom__' const CODEX_COMMAND = 'codex' const CODEX_MODEL_OPTIONS = [ - { label: 'Codex 默认(推荐)', value: '', hint: '使用当前 Codex CLI 支持的默认模型' }, { label: 'gpt-5.5', value: 'gpt-5.5', hint: '高能力模型' }, { label: 'gpt-5', value: 'gpt-5', hint: '通用模型' }, ] @@ -29,7 +28,6 @@ const PRESETS: { label: string; provider?: string; url: string; model: string; c { label: '通义千问', url: 'https://dashscope.aliyuncs.com/compatible-mode/v1', model: 'qwen-3.6plus', website: 'https://tongyi.aliyun.com/', websiteLabel: 'tongyi.aliyun.com', description: '阿里云 DashScope 兼容模式接口。' }, { label: '智谱 GLM', url: 'https://open.bigmodel.cn/api/paas/v4', model: 'glm-5.2', website: 'https://open.bigmodel.cn/', websiteLabel: 'open.bigmodel.cn', description: '智谱 AI 官方 OpenAI 兼容接口。' }, { label: 'Kimi', url: 'https://api.moonshot.cn/v1', model: 'kimi-k2.6', website: 'https://platform.moonshot.cn/', websiteLabel: 'platform.moonshot.cn', description: '月之暗面 Moonshot 官方 OpenAI 兼容接口,支持超长上下文。' }, - { label: 'Codex CLI', provider: CODEX_PROVIDER, url: '', model: '', codexCommand: CODEX_COMMAND, website: 'https://developers.openai.com/codex/noninteractive', websiteLabel: 'codex exec', description: '调用本机 Codex CLI 的 codex exec, 适合已登录 ChatGPT/Codex 的本地环境。' }, ] export function SettingsAIPanel() { @@ -225,7 +223,7 @@ export function SettingsAIPanel() { icon={Settings2} title="自定义配置" right={ - + {isCodexProvider ? 'codex exec' : 'Chat Completions'} {isCodexProvider ? 'CLI' : '接口'} @@ -235,7 +233,7 @@ export function SettingsAIPanel() { {isCodexProvider ? (
-
+
{CODEX_COMMAND}
@@ -351,7 +349,6 @@ export function SettingsAIPanel() {

清空 AI 配置

- 这会清空已保存的 provider、API Key、API 地址、模型和 Codex CLI 命令。之后可以重新配置。