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.
This commit is contained in:
Jason
2025-10-01 21:28:09 +08:00
parent f74d641f86
commit 45a639e73f

View File

@@ -6,6 +6,8 @@ import { ProviderCategory } from "../types";
export interface CodexProviderPreset {
name: string;
websiteUrl: string;
// 第三方供应商可提供单独的获取 API Key 链接
apiKeyUrl?: string;
auth: Record<string, any>; // 将写入 ~/.codex/auth.json
config: string; // 将写入 ~/.codex/config.tomlTOML 字符串)
isOfficial?: boolean; // 标识是否为官方预设