Add APIKEY.FUN partner provider presets

This commit is contained in:
Jason
2026-05-28 23:43:48 +08:00
parent 4bb4e994af
commit 8302f1e36c
19 changed files with 232 additions and 0 deletions
+30
View File
@@ -1206,6 +1206,36 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "APIKEY.FUN",
websiteUrl: "https://apikey.fun",
apiKeyUrl: "https://apikey.fun/register?aff=CCSwitch",
settingsConfig: {
npm: "@ai-sdk/anthropic",
name: "APIKEY.FUN",
options: {
baseURL: "https://api.apikey.fun/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"claude-opus-4-7": { name: "Claude Opus 4.7" },
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
"claude-haiku-4-5": { name: "Claude Haiku 4.5" },
},
},
category: "third_party",
isPartner: true,
partnerPromotionKey: "apikeyfun",
icon: "apikeyfun",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "Cubence",
websiteUrl: "https://cubence.com",