mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 19:45:34 +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/",
|
||||
|
||||
Reference in New Issue
Block a user