mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 10:21:16 +08:00
feat: add CherryIN preset provider for Claude Code and Codex (#3643)
* feat: add CherryIN preset provider for Claude Code and Codex CherryIN (open.cherryin.net) is an API aggregator gateway. Add it as a quick-config preset for both Claude Code (Anthropic format) and Codex (OpenAI-compatible), placed next to AiHubMix, with the official brand icon. Endpoints and model IDs verified against CherryIN's live pricing API. * feat: add CherryIN preset to Gemini, Claude Desktop, OpenCode, OpenClaw, Hermes Extend CherryIN coverage to all remaining apps, each placed next to AiHubMix. Anthropic-native (open.cherryin.net) for Claude Desktop/OpenClaw/Hermes, @ai-sdk/anthropic (/v1) for OpenCode, Gemini-compatible endpoint for Gemini CLI. Model IDs verified against CherryIN's live pricing API.
This commit is contained in:
@@ -337,6 +337,24 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
endpointCandidates: ["https://api.lemondata.cc"],
|
||||
icon: "lemondata",
|
||||
},
|
||||
{
|
||||
name: "CherryIN",
|
||||
websiteUrl: "https://open.cherryin.ai",
|
||||
apiKeyUrl: "https://open.cherryin.ai/console/token",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://open.cherryin.net",
|
||||
GEMINI_API_KEY: "",
|
||||
GEMINI_MODEL: "google/gemini-3.5-flash",
|
||||
},
|
||||
},
|
||||
baseURL: "https://open.cherryin.net",
|
||||
model: "google/gemini-3.5-flash",
|
||||
description: "CherryIN",
|
||||
category: "aggregator",
|
||||
endpointCandidates: ["https://open.cherryin.net"],
|
||||
icon: "cherryin",
|
||||
},
|
||||
{
|
||||
name: "OpenRouter",
|
||||
websiteUrl: "https://openrouter.ai",
|
||||
|
||||
Reference in New Issue
Block a user