provider: Volcengine Ark's Coding and Agent Plans list kimi-k3.1-pro and deepseek-v4.1-flash-economy, not doubao-seed-2.1-turbo or kimi-k2.7-code (xyenon)

xyenon (Discord #feedback) reported that Ark's Coding Plan and Agent
Plan model lists changed. The plans' /models doesn't give the plan's
models, so magpie keeps them in presets.go. Each claim was checked
against Volcengine's docs, read through the docs API on 10-29: Coding
Plan 套餐概览 (82379/1925114, updated 10-28), 快速开始 (1928261,
10-24), Agent Plan 套餐概览 (2366394, 10-28), the model release
notes (1159178) and the discount page (coding-plan-personal-model-discount).

- kimi-k3.1-pro and deepseek-v4.1-flash-economy: in both plans'
  tables and the quick start's model names. Added to both.
- doubao-seedream-5.0-flash: in the Agent Plan's table as an image
  model, spelled so (beside doubao-seedream-5-0-pro). Added to its
  drawers.
- doubao-seed-2.1-turbo: in neither plan's table nor the quick start.
  Removed from both.
- kimi-k2.7-code: marked 即将下线 in both tables and gone from the
  quick start's model names; reported offline on 10-28. Removed.
- minimax-m3: marked 即将下线 the same way, reported closed to new
  users and offline on 11-02. Kept until then, since accounts that
  had it are still served it; a comment says so. The docs give
  neither offline date.

Both plans list the same text models, so they share one slice
(arkPlanModels), as Alibaba's do. A user who picked a removed model
keeps the pick: Exposed keeps picks the list doesn't have, and the
plans have no fetched list for dropGonePicks to act on. No other
place lists these plans' models (grepped the ids across the repo,
site/ included).

Run at 34b2dd9b7 (rebased origin/main), via wsl-run:
gofmt -l clean; go vet ./internal/provider; go test ./internal/provider
ok (237s); go test ./internal/gateway -run 'Volc|Draw|Embed|Video|Plan'
ok; go test -tags nogui ./internal/gui -run 'Volc|KeyPlan|Plan' ok.
Broken by hand: TestVolcenginePlanModelsAsDocumented against the old
presets.go is red on every claim (missing kimi-k3.1-pro, economy and
seedream flash, turbo and kimi-k2.7-code listed).
Rebased on 8701eb35e (no internal/provider or catalog change since
34b2dd9b7): go vet ./internal/provider and go test ./internal/provider
ok (212s) again at that head (the commit on 8701eb35e).
Not tried: a real Coding or Agent Plan key (we have none), so
doubao-seedream-5.0-flash's dotted id is the docs' word only.
This commit is contained in:
yetone
2026-10-29 15:39:43 +08:00
parent 1801c96bfb
commit 4d9058a98a
2 changed files with 47 additions and 7 deletions
+14 -7
View File
@@ -118,6 +118,17 @@ func bailianWorkspace(region string) string {
return "https://" + WorkspaceID + "." + region + ".maas.aliyuncs.com/compatible-mode/v1"
}
// arkPlanModels are the text models of Volcengine Ark's Coding Plan and
// Agent Plan, which list the same ones: the plans' /models doesn't give
// them, so they are the docs' (套餐概览 docs/82379/1925114 and 2366394,
// 快速开始 1928261), ark-code-latest first. doubao-seed-2.1-turbo and
// kimi-k2.7-code are gone from the plans (xyenon, 10-29). minimax-m3 is
// marked 即将下线 and stays until it goes (11-02, as reported), as the
// accounts that have it are still served it.
var arkPlanModels = []string{"ark-code-latest", "doubao-seed-evolving", "doubao-seed-2.1-pro", "doubao-seed-2.1-lite",
"doubao-seed-2.0-mini", "minimax-m3", "glm-5.3", "glm-5.3-flash", "deepseek-v4.1-flash", "deepseek-v4.1-flash-economy", "deepseek-v4-flash", "deepseek-v4-pro",
"kimi-k2.8-preview", "kimi-k3", "kimi-k3.1-pro"}
// alibabaPlanModels are the text models of Alibaba's Token Plan, the same
// on the Qwen AI platform's and on Bailian's, as their overviews list them.
var alibabaPlanModels = []string{"auto", "qwen3.8-max", "qwen3.8-flash", "qwen3.7-max", "qwen3.7-plus", "qwen3.6-flash",
@@ -333,16 +344,12 @@ var presets = []PresetDef{
Website: "https://www.volcengine.com/docs/82379/1925114", KeysURL: "https://ark.volcengine.com/region:cn-beijing/apikey",
RegionLabel: "Plan", KeyPlans: true, Regions: []Region{
{ID: "coding", Name: "Coding Plan", Chat: "https://ark.cn-beijing.volces.com/api/coding/v3", Responses: "https://ark.cn-beijing.volces.com/api/coding/v3", Anthropic: "https://ark.cn-beijing.volces.com/api/coding",
Models: []string{"ark-code-latest", "doubao-seed-evolving", "doubao-seed-2.1-pro", "doubao-seed-2.1-lite", "doubao-seed-2.1-turbo",
"doubao-seed-2.0-mini", "minimax-m3", "glm-5.3", "glm-5.3-flash", "deepseek-v4.1-flash", "deepseek-v4-flash", "deepseek-v4-pro",
"kimi-k2.7-code", "kimi-k2.8-preview", "kimi-k3"},
Models: arkPlanModels,
Embeddings: []string{"doubao-embedding-vision"}},
{ID: "agent", Name: "Agent Plan", Chat: "https://ark.cn-beijing.volces.com/api/plan/v3", Responses: "https://ark.cn-beijing.volces.com/api/plan/v3", Anthropic: "https://ark.cn-beijing.volces.com/api/plan",
Models: []string{"ark-code-latest", "doubao-seed-evolving", "doubao-seed-2.1-pro", "doubao-seed-2.1-lite", "doubao-seed-2.1-turbo",
"doubao-seed-2.0-mini", "minimax-m3", "glm-5.3", "glm-5.3-flash", "deepseek-v4.1-flash", "deepseek-v4-flash", "deepseek-v4-pro",
"kimi-k2.7-code", "kimi-k2.8-preview", "kimi-k3"},
Models: arkPlanModels,
Embeddings: []string{"doubao-embedding-vision"},
Drawers: []string{"doubao-seedream-5-0-pro"},
Drawers: []string{"doubao-seedream-5-0-pro", "doubao-seedream-5.0-flash"},
Videos: []string{"doubao-seedance-2.0", "doubao-seedance-2.0-fast", "doubao-seedance-2.0-mini", "doubao-seedance-2.5"}},
{ID: "api", Name: "Pay as you go", Chat: "https://ark.cn-beijing.volces.com/api/v3", Responses: "https://ark.cn-beijing.volces.com/api/v3", Lists: true},
},
+33
View File
@@ -167,3 +167,36 @@ func TestVolcengineModelLists(t *testing.T) {
}
}
}
// The plans' models are their docs' (套餐概览 1925114 and 2366394, 快速开始
// 1928261, read 10-29): kimi-k3.1-pro and deepseek-v4.1-flash-economy
// came, doubao-seed-2.1-turbo and kimi-k2.7-code went, minimax-m3 stays
// until it goes offline, and the Agent Plan draws with Seedream 5.0 Flash
// too. A user's own pick of a model the plan dropped is still theirs.
func TestVolcenginePlanModelsAsDocumented(t *testing.T) {
pr := Preset("volcengine")
coding, agent := pr.Regions[0], pr.Regions[1]
for _, r := range []Region{coding, agent} {
for _, id := range []string{"kimi-k3.1-pro", "deepseek-v4.1-flash-economy", "minimax-m3", "kimi-k3", "deepseek-v4.1-flash"} {
if !slices.Contains(r.Models, id) {
t.Errorf("%s: %s missing from %v", r.ID, id, r.Models)
}
}
for _, id := range []string{"doubao-seed-2.1-turbo", "kimi-k2.7-code"} {
if slices.Contains(r.Models, id) {
t.Errorf("%s: %s is offline but listed", r.ID, id)
}
}
}
if !slices.Contains(agent.Drawers, "doubao-seedream-5.0-flash") || !slices.Contains(agent.Drawers, "doubao-seedream-5-0-pro") {
t.Errorf("Agent Plan drawers %v", agent.Drawers)
}
p, err := FromPreset("volcengine")
if err != nil {
t.Fatal(err)
}
p.Models = []string{"kimi-k2.7-code", "kimi-k3.1-pro"}
if got := modelIDs(p.Exposed()); !slices.Equal(got, p.Models) {
t.Fatalf("a user's picks %v exposed as %v", p.Models, got)
}
}