mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 21:30:17 +08:00
feat(presets): add LemonData provider across all six apps
Register LemonData (third-party partner) preset for Claude, Codex, Gemini, OpenCode, OpenClaw, and Hermes, plus icon assets and i18n partner promotion copy (zh/en/ja). Claude preset uses ANTHROPIC_API_KEY auth; OpenAI-compatible apps target gpt-5.4.
This commit is contained in:
@@ -843,6 +843,22 @@ export const providerPresets: ProviderPreset[] = [
|
||||
icon: "openai",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
apiKeyField: "ANTHROPIC_API_KEY",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.lemondata.cc",
|
||||
ANTHROPIC_API_KEY: "",
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
icon: "lemondata",
|
||||
},
|
||||
{
|
||||
name: "Nvidia",
|
||||
websiteUrl: "https://build.nvidia.com",
|
||||
|
||||
@@ -389,6 +389,22 @@ model_auto_compact_token_limit = 9000000`,
|
||||
icon: "eflowcode",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
category: "third_party",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"lemondata",
|
||||
"https://api.lemondata.cc/v1",
|
||||
"gpt-5.4",
|
||||
),
|
||||
endpointCandidates: ["https://api.lemondata.cc/v1"],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
icon: "lemondata",
|
||||
},
|
||||
{
|
||||
name: "PIPELLM",
|
||||
websiteUrl: "https://code.pipellm.ai",
|
||||
|
||||
@@ -295,6 +295,25 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
icon: "eflowcode",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://api.lemondata.cc",
|
||||
GEMINI_MODEL: "gemini-3.1-pro",
|
||||
},
|
||||
},
|
||||
baseURL: "https://api.lemondata.cc",
|
||||
model: "gemini-3.1-pro",
|
||||
description: "LemonData",
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
endpointCandidates: ["https://api.lemondata.cc"],
|
||||
icon: "lemondata",
|
||||
},
|
||||
{
|
||||
name: "OpenRouter",
|
||||
websiteUrl: "https://openrouter.ai",
|
||||
|
||||
@@ -988,6 +988,25 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
model: { default: "claude-opus-4-7", provider: "lionccapi" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
settingsConfig: {
|
||||
name: "lemondata",
|
||||
base_url: "https://api.lemondata.cc/v1",
|
||||
api_key: "",
|
||||
api_mode: "chat_completions",
|
||||
models: [{ id: "gpt-5.4", name: "GPT-5.4" }],
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
icon: "lemondata",
|
||||
suggestedDefaults: {
|
||||
model: { default: "gpt-5.4", provider: "lemondata" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "TheRouter",
|
||||
websiteUrl: "https://therouter.ai",
|
||||
|
||||
@@ -1701,6 +1701,42 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.lemondata.cc/v1",
|
||||
apiKey: "",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "gpt-5.4",
|
||||
name: "GPT-5.4",
|
||||
contextWindow: 400000,
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
icon: "lemondata",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "lemondata/gpt-5.4",
|
||||
},
|
||||
modelCatalog: {
|
||||
"lemondata/gpt-5.4": { alias: "GPT-5.4" },
|
||||
},
|
||||
},
|
||||
},
|
||||
// ========== Cloud Providers ==========
|
||||
{
|
||||
name: "AWS Bedrock",
|
||||
|
||||
@@ -1418,6 +1418,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "LemonData",
|
||||
websiteUrl: "https://lemondata.cc",
|
||||
apiKeyUrl: "https://lemondata.cc/r/FFX1ZDUP",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "LemonData",
|
||||
options: {
|
||||
baseURL: "https://api.lemondata.cc/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.4": { name: "GPT-5.4" },
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "lemondata",
|
||||
icon: "lemondata",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AWS Bedrock",
|
||||
websiteUrl: "https://aws.amazon.com/bedrock/",
|
||||
|
||||
@@ -797,7 +797,8 @@
|
||||
"ctok": "Join the CTok community on the official website and subscribe to a plan.",
|
||||
"ddshub": "DDSHub offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first top-up (contact group admin to claim)!",
|
||||
"lionccapi": "LionCCAPI offers exclusive benefits for CC Switch users. After registration, add WeChat HSQBJ088888888 and mention 'cc-switch' to receive $10 free credits!",
|
||||
"shengsuanyun": "Shengsuanyun offers exclusive benefits for CC Switch users. New users who register via this link get ¥10 free credits and 10% bonus on first top-up!"
|
||||
"shengsuanyun": "Shengsuanyun offers exclusive benefits for CC Switch users. New users who register via this link get ¥10 free credits and 10% bonus on first top-up!",
|
||||
"lemondata": "Lemon Code offers a special promotion for CC Switch users. Sign up via this link to receive $1 in free credits."
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare",
|
||||
|
||||
@@ -797,7 +797,8 @@
|
||||
"ctok": "公式サイトで CTok コミュニティに参加し、プランを購読してください。",
|
||||
"ddshub": "DDSHub は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回チャージで 10% の追加クレジットがもらえます(グループ管理者に連絡して受け取り)!",
|
||||
"lionccapi": "LionCCAPIはCC Switchユーザーに特別特典を提供しています。登録後、WeChat HSQBJ088888888を追加し、「cc-switch」と伝えると$10分のクレジットがもらえます!",
|
||||
"shengsuanyun": "胜算云はCC Switchユーザーに特別特典を提供しています。このリンクから登録すると、10元分の無料クレジットと初回チャージ10%ボーナスがもらえます!"
|
||||
"shengsuanyun": "胜算云はCC Switchユーザーに特別特典を提供しています。このリンクから登録すると、10元分の無料クレジットと初回チャージ10%ボーナスがもらえます!",
|
||||
"lemondata": "Lemon Code は CC Switch ユーザー向けの特別オファーを提供しています。このリンクから登録すると 1 ドル分の無料クレジットがもらえます。"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "Compshare",
|
||||
|
||||
@@ -797,7 +797,8 @@
|
||||
"ctok": "官网加入CTok社群,订阅套餐。",
|
||||
"ddshub": "呆呆兽为CC Switch 的用户提供了特别福利,通过此链接注册后,首单充值可额外赠送 10% 额度(联系群主领取)!",
|
||||
"lionccapi": "LionCCAPI 为 CC Switch 的用户提供了特别福利,注册后添加客服微信HSQBJ088888888,发暗号cc-switch备注即可送10美金额度!",
|
||||
"shengsuanyun": "胜算云为 CC Switch 的用户提供了特别福利,使用此链接注册的新用户可获 10 元模力及首充 10% 赠送!"
|
||||
"shengsuanyun": "胜算云为 CC Switch 的用户提供了特别福利,使用此链接注册的新用户可获 10 元模力及首充 10% 赠送!",
|
||||
"lemondata": "Lemon Code 为 CC Switch 的用户提供了特别优惠。使用此链接注册可以获得1美元免费额度。"
|
||||
},
|
||||
"presets": {
|
||||
"ucloud": "优云智算",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import _dds from "./dds.svg?url";
|
||||
import _eflowcode from "./eflowcode.png";
|
||||
import _hermes from "./hermes.png";
|
||||
import _lemondata from "./lemondata.png";
|
||||
import _pipellm from "./pipellm.png";
|
||||
import _shengsuanyun from "./shengsuanyun.svg?url";
|
||||
|
||||
@@ -83,6 +84,7 @@ export const iconUrls: Record<string, string> = {
|
||||
dds: _dds,
|
||||
eflowcode: _eflowcode,
|
||||
hermes: _hermes,
|
||||
lemondata: _lemondata,
|
||||
pipellm: _pipellm,
|
||||
shengsuanyun: _shengsuanyun,
|
||||
};
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -275,6 +275,13 @@ export const iconMetadata: Record<string, IconMetadata> = {
|
||||
keywords: ["hermes", "agent", "nous", "nousresearch"],
|
||||
defaultColor: "#000000",
|
||||
},
|
||||
lemondata: {
|
||||
name: "lemondata",
|
||||
displayName: "LemonData",
|
||||
category: "ai-provider",
|
||||
keywords: ["lemondata", "lemon", "lemoncode"],
|
||||
defaultColor: "#F5C518",
|
||||
},
|
||||
packycode: {
|
||||
name: "packycode",
|
||||
displayName: "PackyCode",
|
||||
|
||||
Reference in New Issue
Block a user