From 66bbf6330054dcd5427b54076303ca6b14036409 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 12 Oct 2025 19:58:40 +0800 Subject: [PATCH] feat(ui): add endpoint format hint for Codex providers Add informational hint below Codex API endpoint input field to guide users to fill in OpenAI Response compatible service endpoints, similar to the existing hint for Claude providers. --- src/components/ProviderForm.tsx | 5 +++++ src/i18n/locales/en.json | 1 + src/i18n/locales/zh.json | 1 + 3 files changed, 7 insertions(+) diff --git a/src/components/ProviderForm.tsx b/src/components/ProviderForm.tsx index 50a2124..39555a8 100644 --- a/src/components/ProviderForm.tsx +++ b/src/components/ProviderForm.tsx @@ -1774,6 +1774,11 @@ const ProviderForm: React.FC = ({ autoComplete="off" className="w-full px-3 py-2 border border-gray-200 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:focus:ring-blue-400/20 focus:border-blue-500 dark:focus:border-blue-400 transition-colors" /> +
+

+ {t("providerForm.codexApiHint")} +

+
)} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index d6cbecb..d3a7507 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -174,6 +174,7 @@ "fastModelPlaceholder": "e.g., GLM-4.5-Air", "modelHint": "💡 Leave blank to use provider's default model", "apiHint": "💡 Fill in Claude API compatible service endpoint", + "codexApiHint": "💡 Fill in service endpoint compatible with OpenAI Response format", "fillSupplierName": "Please fill in provider name", "fillConfigContent": "Please fill in configuration content", "fillParameter": "Please fill in {{label}}", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index f74b043..e4d662b 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -174,6 +174,7 @@ "fastModelPlaceholder": "例如: GLM-4.5-Air", "modelHint": "💡 留空将使用供应商的默认模型", "apiHint": "💡 填写兼容 Claude API 的服务端点地址", + "codexApiHint": "💡 填写兼容 OpenAI Response 格式的服务端点地址", "fillSupplierName": "请填写供应商名称", "fillConfigContent": "请填写配置内容", "fillParameter": "请填写 {{label}}",