mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +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:
@@ -184,6 +184,21 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "patewayai",
|
||||
icon: "pateway",
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
category: "aggregator",
|
||||
baseUrl: "https://api.qnaigc.com",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
endpointCandidates: ["https://api.qnaigc.com", "https://api.modelink.ai"],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
@@ -236,6 +236,23 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "unity2",
|
||||
icon: "unity2",
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.qnaigc.com",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://api.qnaigc.com", "https://api.modelink.ai"],
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
},
|
||||
{
|
||||
name: "Gemini Native",
|
||||
websiteUrl: "https://ai.google.dev/gemini-api",
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -107,6 +107,29 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
endpointCandidates: ["https://subrouter.ai/v1beta"],
|
||||
icon: "subrouter",
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://api.qnaigc.com/bypass/vertex",
|
||||
GEMINI_MODEL: "gemini-3.1-pro-preview",
|
||||
},
|
||||
},
|
||||
baseURL: "https://api.qnaigc.com/bypass/vertex",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
description: "Qiniu",
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
endpointCandidates: [
|
||||
"https://api.qnaigc.com/bypass/vertex",
|
||||
"https://api.modelink.ai/bypass/vertex",
|
||||
],
|
||||
icon: "qiniu",
|
||||
},
|
||||
{
|
||||
name: "PackyCode",
|
||||
websiteUrl: "https://www.packyapi.com",
|
||||
|
||||
@@ -149,6 +149,26 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
model: { default: "openai/gpt-5.5", provider: "shengsuanyun" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
settingsConfig: {
|
||||
name: "qiniu",
|
||||
base_url: "https://api.qnaigc.com/v1",
|
||||
api_key: "",
|
||||
api_mode: "chat_completions",
|
||||
models: [{ id: "gpt-5.5", name: "GPT-5.5" }],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
suggestedDefaults: {
|
||||
model: { default: "gpt-5.5", provider: "qiniu" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
@@ -327,6 +327,43 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Qiniu",
|
||||
nameKey: "providerForm.presets.qiniu",
|
||||
websiteUrl: "https://s.qiniu.com/nMvAvy",
|
||||
apiKeyUrl: "https://s.qiniu.com/nMvAvy",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.qnaigc.com/v1",
|
||||
apiKey: "",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "gpt-5.5",
|
||||
name: "GPT-5.5",
|
||||
contextWindow: 400000,
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "qiniu",
|
||||
icon: "qiniu",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "qiniu/gpt-5.5",
|
||||
},
|
||||
modelCatalog: {
|
||||
"qiniu/gpt-5.5": { alias: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Unity2.ai",
|
||||
websiteUrl: "https://unity2.ai",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1024,12 +1024,14 @@
|
||||
"byteplus": "Register via this link to get 500,000 tokens of free inference quota per model.",
|
||||
"ccsub": "CCSub is a stable, affordable AI API relay — a drop-in replacement for Claude.ai & OpenAI subscriptions, with one key for all models at ~30% of direct API cost.",
|
||||
"subrouter": "SubRouter is an AI relay aggregator that lets one key access multiple models and providers.",
|
||||
"qiniu": "Qiniu Cloud is a multi-protocol AI relay: one key for native Claude, GPT, and Gemini models, with the Anthropic, OpenAI, and Gemini APIs all supported.",
|
||||
"unity2": "Unity2.ai offers exclusive benefits for CC Switch users: register via this link to get $2 in credits, plus another $10 for joining the official group — up to $12 in free credits!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare",
|
||||
"ucloudCoding": "Compshare Coding Plan",
|
||||
"shengsuanyun": "Shengsuanyun",
|
||||
"qiniu": "Qiniu",
|
||||
"openrouter": "OpenRouter",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
|
||||
@@ -1024,12 +1024,14 @@
|
||||
"byteplus": "このリンクから登録すると、各モデルごとに50万トークンの無料推論クォータがもらえます。",
|
||||
"ccsub": "CCSub は安定・低価格の AI API リレーサービスです。Claude Code の公式サブスクリプションの代替として、1つのキーで全モデルを公式比約1/3のコストで利用できます。",
|
||||
"subrouter": "SubRouter は、1つのキーで複数のモデルとプロバイダーにアクセスできる AI 中継アグリゲーターです。",
|
||||
"qiniu": "Qiniu Cloud(七牛云)はマルチプロトコル対応の AI 中継プラットフォームです。1つのキーでネイティブの Claude・GPT・Gemini モデルを利用でき、Anthropic/OpenAI/Gemini の各 API に対応します。",
|
||||
"unity2": "Unity2.ai は CC Switch ユーザーに専属特典を提供しています:このリンクから登録すると $2 分のクレジット、公式グループ参加でさらに $10、最大 $12 の無料クレジットがもらえます!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare",
|
||||
"ucloudCoding": "Compshare Coding Plan",
|
||||
"shengsuanyun": "Shengsuanyun",
|
||||
"qiniu": "Qiniu",
|
||||
"openrouter": "OpenRouter",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
|
||||
@@ -996,12 +996,14 @@
|
||||
"byteplus": "透過此連結註冊即可取得每個模型 50 萬 tokens 的免費推理額度。",
|
||||
"ccsub": "CCSub 是穩定、實惠的 AI API 中轉平台,Claude Code 官方訂閱的超強平替,一個 Key 覆蓋全部模型,價格約為官方 1/3。",
|
||||
"subrouter": "SubRouter 是中轉站聚合平台,一個 Key 可接入多個模型與供應商。",
|
||||
"qiniu": "七牛雲是多協定 AI 中轉平台,一個 Key 即可呼叫原生 Claude、GPT、Gemini 模型,相容 Anthropic、OpenAI、Gemini 多種介面。",
|
||||
"unity2": "Unity2.ai 為 CC Switch 使用者提供專屬福利:透過此連結註冊可領取 $2 餘額,加入官方群再送 $10,最高可領 $12 免費額度!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "優雲智算",
|
||||
"ucloudCoding": "優雲智算 Coding Plan",
|
||||
"shengsuanyun": "勝算雲",
|
||||
"qiniu": "七牛雲",
|
||||
"openrouter": "OpenRouter",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
|
||||
@@ -1024,12 +1024,14 @@
|
||||
"byteplus": "通过此链接注册即可获取每个模型50万tokens的免费推理额度。",
|
||||
"ccsub": "CCSub 是稳定、实惠的 AI API 中转平台,Claude Code 官方订阅的超强平替,一个 Key 覆盖全部模型,价格约为官方 1/3。",
|
||||
"subrouter": "SubRouter 是中转站聚合平台,一个 Key 可接入多个模型与供应商。",
|
||||
"qiniu": "七牛云是多协议 AI 中转平台,一个 Key 即可调用原生 Claude、GPT、Gemini 模型,兼容 Anthropic、OpenAI、Gemini 多种接口。",
|
||||
"unity2": "Unity2.ai 为 CC Switch 用户提供专属福利:通过此链接注册可领取 $2 余额,加入官方群再送 $10,最高可领 $12 免费额度!"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "优云智算",
|
||||
"ucloudCoding": "优云智算Coding Plan",
|
||||
"shengsuanyun": "胜算云",
|
||||
"qiniu": "七牛云",
|
||||
"openrouter": "OpenRouter",
|
||||
"deepseek": "DeepSeek",
|
||||
"together": "Together AI"
|
||||
|
||||
@@ -15,6 +15,7 @@ import _hermes from "./hermes.png";
|
||||
import _huoshan from "./huoshan.png";
|
||||
import _pateway from "./pateway.jpg";
|
||||
import _pipellm from "./pipellm.png";
|
||||
import _qiniu from "./qiniu.png";
|
||||
import _relaxcode from "./relaxcode.png";
|
||||
import _runapi from "./runapi.jpg";
|
||||
import _shengsuanyun from "./shengsuanyun.svg?url";
|
||||
@@ -109,6 +110,7 @@ export const iconUrls: Record<string, string> = {
|
||||
huoshan: _huoshan,
|
||||
pateway: _pateway,
|
||||
pipellm: _pipellm,
|
||||
qiniu: _qiniu,
|
||||
relaxcode: _relaxcode,
|
||||
runapi: _runapi,
|
||||
shengsuanyun: _shengsuanyun,
|
||||
|
||||
@@ -511,6 +511,24 @@ export const iconMetadata: Record<string, IconMetadata> = {
|
||||
keywords: ["pipellm", "pipe"],
|
||||
defaultColor: "currentColor",
|
||||
},
|
||||
qiniu: {
|
||||
name: "qiniu",
|
||||
displayName: "七牛云",
|
||||
category: "ai-provider",
|
||||
keywords: [
|
||||
"qiniu",
|
||||
"qnaigc",
|
||||
"modelink",
|
||||
"aggregator",
|
||||
"relay",
|
||||
"claude",
|
||||
"codex",
|
||||
"gpt",
|
||||
"gemini",
|
||||
"gateway",
|
||||
],
|
||||
defaultColor: "#00AAE7",
|
||||
},
|
||||
runapi: {
|
||||
name: "runapi",
|
||||
displayName: "RunAPI",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
Reference in New Issue
Block a user