From 45a639e73f3996f2a9feaa42f02b87a5e9b481bb Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 1 Oct 2025 21:28:09 +0800 Subject: [PATCH] feat: add optional apiKeyUrl field to provider presets Allow third-party providers to specify a dedicated API key URL separate from the main website URL for easier key acquisition. --- src/config/codexProviderPresets.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 06de0db..b9ae042 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -6,6 +6,8 @@ import { ProviderCategory } from "../types"; export interface CodexProviderPreset { name: string; websiteUrl: string; + // 第三方供应商可提供单独的获取 API Key 链接 + apiKeyUrl?: string; auth: Record; // 将写入 ~/.codex/auth.json config: string; // 将写入 ~/.codex/config.toml(TOML 字符串) isOfficial?: boolean; // 标识是否为官方预设