mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 16:26:16 +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:
@@ -309,6 +309,35 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "Qiniu",
|
||||
options: {
|
||||
baseURL: "https://api.qnaigc.com/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
Reference in New Issue
Block a user