mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-30 10:25:05 +08:00
feat(presets): add Qiniu (七牛云) provider preset for all apps
Add the Qiniu Cloud AI gateway (api.qnaigc.com primary, api.modelink.ai overseas mirror) as a partner aggregator preset across Claude Code, Claude Desktop, Codex, Gemini, OpenCode, OpenClaw, and Hermes. Qiniu relays native Claude/GPT/Gemini, so Claude Code/Codex pass through native models (no domestic-model pinning); the OpenAI-compatible apps default to gpt-5.5. - Claude / Claude Desktop: Anthropic-compatible bare host, native passthrough - Codex: native Responses at /bypass/openai/v1, gpt-5.5 - Gemini: gemini-3.1-pro-preview via /bypass/vertex - OpenCode / OpenClaw / Hermes: gpt-5.5 over OpenAI-compatible /v1 - Localized display name via nameKey + partner promotion blurb in zh/en/ja/zh-TW - Register qiniu.png icon (URL import + iconUrls + metadata)
This commit is contained in:
@@ -280,6 +280,26 @@ export const codexProviderPresets: CodexProviderPreset[] = [
|
||||
partnerPromotionKey: "unity2",
|
||||
icon: "unity2",
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
category: "aggregator",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"qiniu",
|
||||
"https://api.qnaigc.com/bypass/openai/v1",
|
||||
"gpt-5.5",
|
||||
),
|
||||
endpointCandidates: [
|
||||
"https://api.qnaigc.com/bypass/openai/v1",
|
||||
"https://api.modelink.ai/bypass/openai/v1",
|
||||
],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
},
|
||||
{
|
||||
name: "Azure OpenAI",
|
||||
websiteUrl:
|
||||
|
||||
Reference in New Issue
Block a user