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
107 changes: 107 additions & 0 deletions internal/providers/configs/alibaba-coding-plan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"name": "Alibaba Coding Plan",
"id": "alibaba-coding-plan",
"type": "openai-compat",
"api_key": "$ALIBABA_CODING_PLAN_API_KEY",
"api_endpoint": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
"default_large_model_id": "qwen3.5-plus",
"default_small_model_id": "qwen3-coder-next",
"models": [
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"id": "qwen3.5-plus",
"name": "Qwen3.5 Plus",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 1000000,
"default_max_tokens": 65536,
"supports_attachments": false,
"can_reason": true
},
{
"id": "qwen3-coder-next",
"name": "Qwen3 Coder Next",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 262144,
"default_max_tokens": 65536,
"supports_attachments": false,
"can_reason": false
},
{
"id": "kimi-k2.5",
"name": "Kimi K2.5",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 262144,
"default_max_tokens": 32768,
"supports_attachments": true,
"can_reason": true
},
{
"id": "MiniMax-M2.5",
"name": "MiniMax-M2.5",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 196608,
"default_max_tokens": 24576,
"supports_attachments": false,
"can_reason": true
},
{
"id": "glm-5",
"name": "GLM-5",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 202752,
"default_max_tokens": 16384,
"supports_attachments": false,
"can_reason": true
},
{
"id": "qwen3-coder-plus",
"name": "Qwen3 Coder Plus",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 1000000,
"default_max_tokens": 65536,
"supports_attachments": false,
"can_reason": false
},
{
"id": "glm-4.7",
"name": "GLM-4.7",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 202752,
"default_max_tokens": 16384,
"supports_attachments": false,
"can_reason": true
},
{
"id": "qwen3-max-2026-01-23",
"name": "Qwen3 Max",
"cost_per_1m_in": 0.0,
"cost_per_1m_out": 0.0,
"cost_per_1m_in_cached": 0.0,
"cost_per_1m_out_cached": 0.0,
"context_window": 262144,
"default_max_tokens": 32768,
"supports_attachments": false,
"can_reason": false
}
]
}
8 changes: 8 additions & 0 deletions internal/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ var qiniuCloudConfig []byte
//go:embed configs/avian.json
var avianConfig []byte

//go:embed configs/alibaba-coding-plan.json
var alibabaCodingPlanConfig []byte

// ProviderFunc is a function that returns a Provider.
type ProviderFunc func() catwalk.Provider

Expand Down Expand Up @@ -128,6 +131,7 @@ var providerRegistry = []ProviderFunc{
ioNetProvider,
qiniuCloudProvider,
avianProvider,
alibabaCodingPlanProvider,
nebiusProvider,
}

Expand Down Expand Up @@ -264,3 +268,7 @@ func nebiusProvider() catwalk.Provider {
func avianProvider() catwalk.Provider {
return loadProviderFromConfig(avianConfig)
}

func alibabaCodingPlanProvider() catwalk.Provider {
return loadProviderFromConfig(alibabaCodingPlanConfig)
}
Loading