Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/config/claudeDesktopProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,17 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
category: "cn_official",
baseUrl: "https://token-plan.cn-beijing.maas.aliyuncs.com/apps/anthropic",
mode: "proxy",
apiFormat: "anthropic",
modelRoutes: passthroughRoutes(),
Comment thread
xiaoshidefeng marked this conversation as resolved.
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Kimi",
primePartner: true,
Expand Down
14 changes: 14 additions & 0 deletions src/config/claudeProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,20 @@ export const providerPresets: ProviderPreset[] = [
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL:
"https://token-plan.cn-beijing.maas.aliyuncs.com/apps/anthropic",
ANTHROPIC_AUTH_TOKEN: "",
Comment thread
xiaoshidefeng marked this conversation as resolved.
},
},
category: "cn_official",
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Kimi",
primePartner: true,
Expand Down
47 changes: 47 additions & 0 deletions src/config/codexProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,53 @@ requires_openai_auth = true`,
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
apiKeyUrl: "https://bailian.console.aliyun.com/#/api-key",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"bailian-token-plan",
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
"qwen3.7-max",
),
endpointCandidates: [
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
],
apiFormat: "openai_chat",
modelCatalog: modelCatalog([
{
model: "qwen3.7-max",
displayName: "Qwen3.7 Max",
contextWindow: 262144,
},
{
model: "deepseek-v4-pro",
displayName: "DeepSeek V4 Pro",
contextWindow: 1000000,
},
{
model: "kimi-k2.7-code",
displayName: "Kimi K2.7 Code",
contextWindow: 262144,
},
{
model: "glm-5.2",
displayName: "GLM-5.2",
contextWindow: 128000,
},
]),
codexChatReasoning: {
supportsThinking: true,
supportsEffort: false,
thinkingParam: "enable_thinking",
effortParam: "none",
outputFormat: "reasoning_content",
},
category: "cn_official",
icon: "bailian",
iconColor: "#624AFF",
},
{
name: "Kimi",
primePartner: true,
Expand Down
23 changes: 23 additions & 0 deletions src/config/hermesProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,29 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
model: { default: "qwen3-coder-plus", provider: "bailian_coding" },
},
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
settingsConfig: {
name: "bailian_token_plan",
base_url:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
api_key: "",
api_mode: "chat_completions",
models: [
{ id: "qwen3.7-max", name: "Qwen3.7 Max" },
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
{ id: "kimi-k2.7-code", name: "Kimi K2.7 Code" },
{ id: "glm-5.2", name: "GLM-5.2" },
],
},
category: "cn_official",
icon: "bailian",
iconColor: "#624AFF",
suggestedDefaults: {
model: { default: "qwen3.7-max", provider: "bailian_token_plan" },
},
},
{
name: "Kimi",
primePartner: true,
Expand Down
55 changes: 55 additions & 0 deletions src/config/openclawProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,61 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
modelCatalog: { "qwen/qwen3.5-plus": { alias: "Qwen" } },
},
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
apiKeyUrl: "https://bailian.console.aliyun.com/#/api-key",
settingsConfig: {
baseUrl:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
apiKey: "",
api: "openai-completions",
models: [
{
id: "qwen3.7-max",
name: "Qwen3.7 Max",
contextWindow: 262144,
},
{
id: "deepseek-v4-pro",
name: "DeepSeek V4 Pro",
contextWindow: 1000000,
},
{
id: "kimi-k2.7-code",
name: "Kimi K2.7 Code",
contextWindow: 262144,
},
{
id: "glm-5.2",
name: "GLM-5.2",
contextWindow: 128000,
},
],
},
category: "cn_official",
icon: "bailian",
iconColor: "#624AFF",
templateValues: {
baseUrl: {
label: "Base URL",
placeholder:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
defaultValue:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
editorValue: "",
},
apiKey: {
label: "API Key",
placeholder: "sk-...",
editorValue: "",
},
},
suggestedDefaults: {
model: { primary: "qwen/qwen3.7-max" },
modelCatalog: { "qwen/qwen3.7-max": { alias: "Qwen" } },
},
},
{
name: "Kimi K2.7 Code",
primePartner: true,
Expand Down
39 changes: 39 additions & 0 deletions src/config/opencodeProviderPresets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,45 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "Bailian Token Plan",
websiteUrl: "https://bailian.console.aliyun.com",
apiKeyUrl: "https://bailian.console.aliyun.com/#/api-key",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "Bailian Token Plan",
options: {
baseURL:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"qwen3.7-max": { name: "Qwen3.7 Max" },
"deepseek-v4-pro": { name: "DeepSeek V4 Pro" },
"kimi-k2.7-code": { name: "Kimi K2.7 Code" },
"glm-5.2": { name: "GLM-5.2" },
},
},
category: "cn_official",
icon: "bailian",
iconColor: "#624AFF",
templateValues: {
baseURL: {
label: "Base URL",
placeholder:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
defaultValue:
"https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
editorValue: "",
},
apiKey: {
label: "API Key",
placeholder: "sk-...",
editorValue: "",
},
},
},
{
name: "Kimi K2.7 Code",
primePartner: true,
Expand Down