Add SubRouter provider presets (#4522)

Co-authored-by: abingyyds <abingyyds@gmail.com>
This commit is contained in:
abing|web3.club
2026-06-26 23:30:52 +08:00
committed by GitHub
parent 8a91428b71
commit 430ddf92bd
15 changed files with 334 additions and 0 deletions
+28
View File
@@ -436,6 +436,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "SubRouter",
websiteUrl: "https://subrouter.ai",
apiKeyUrl: "https://subrouter.ai/console/token",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "SubRouter",
options: {
baseURL: "https://subrouter.ai/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"gpt-5.5": { name: "GPT-5.5" },
},
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "subrouter",
icon: "subrouter",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "Unity2.ai",
websiteUrl: "https://unity2.ai",