mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-28 08:44:41 +08:00
24a36df140
Claude presets: - Zhipu GLM: glm-4.6 → glm-4.7 - Z.ai GLM: glm-4.6 → glm-4.7 - ModelScope: GLM-4.6 → GLM-4.7 - MiniMax: MiniMax-M2 → MiniMax-M2.1 Codex presets: - Azure, AiHubMix, DMXAPI, PackyCode: gpt-5.1-codex → gpt-5.2 - Custom template: gpt-5-codex → gpt-5.2
31 lines
581 B
TypeScript
31 lines
581 B
TypeScript
/**
|
|
* Codex 配置模板
|
|
* 用于新建自定义供应商时的默认配置
|
|
*/
|
|
|
|
export interface CodexTemplate {
|
|
auth: Record<string, any>;
|
|
config: string;
|
|
}
|
|
|
|
/**
|
|
* 获取 Codex 自定义模板
|
|
* @returns Codex 模板配置
|
|
*/
|
|
export function getCodexCustomTemplate(): CodexTemplate {
|
|
const config = `model_provider = "custom"
|
|
model = "gpt-5.2"
|
|
model_reasoning_effort = "high"
|
|
disable_response_storage = true
|
|
|
|
[model_providers.custom]
|
|
name = "custom"
|
|
wire_api = "responses"
|
|
requires_openai_auth = true`;
|
|
|
|
return {
|
|
auth: { OPENAI_API_KEY: "" },
|
|
config,
|
|
};
|
|
}
|