A model's rate is now the Design Plan's own deduction multiplier from open-design.ai/zh/model-credits/ (rates.mjs), not amr-link's catalog cost word, which disagreed for seven models (Claude Haiku 5.5 2x, GPT-6 Luna 4x, DeepSeek V4 Pro 1x, ...). A model the table doesn't name keeps its catalog word. deepseek-v4.1-flash-eco joins the seed with V4.1 Flash's limits and levels at 0.27x. Reviewed at 0335afb86a9afb53a576813445c0b6cb4705cfeb: - rates.mjs checked row by row against the vendor page, fetched 2026-11-06; the 0.25x row is the 10-20..10-27 promo, over. - mote, HOME=$(mktemp -d), Bun 1.4.2: bun test packages/opendesign 27 pass; bun scripts/check.mjs opendesign ok; npm pack has rates.mjs and the packed plugin imports. - Broken by hand: rateOf ignoring the table (2 red), config hook not re-declaring rate (1 red), eco seed line removed (3 red). - magpie's host builds config models without rate and never writes a hook's result back, so the re-declared rate overrides nothing a user set. - npm had 0.1.8; 0.1.9 is next. Not tried: a real Open Design account; the live ids of hy4-preview and minimax-m3.1-flash (not in the seed).
31 lines
3.1 KiB
JavaScript
31 lines
3.1 KiB
JavaScript
// The models an account is offered before anyone has signed in — the seed
|
||
// magpie and OpenCode read for the provider. Regenerate with
|
||
// `bun refresh-models.mjs` (beside this seed): it
|
||
// reads amr-link's catalog at the signed-in account's key, which is the same
|
||
// list a signed-in account is given again on every listing.
|
||
//
|
||
// name: what the model is called; context/output: its token limits; input:
|
||
// the non-text modalities it takes; cost and capability: the vendor's own
|
||
// words, which the plugin turns into magpie's thinking flag (the rate is
|
||
// rates.mjs's, the plan's own deduction multiplier); efforts: the reasoning
|
||
// levels amr-link was seen to take and think at, measured, not read (#137;
|
||
// max too, plugins#141: the vendor names low, high and max when asked for one
|
||
// it doesn't take), so a refresh keeps them.
|
||
|
||
export const MODELS = {
|
||
"claude-haiku-5.5": { name: "Claude Haiku 5.5", context: 1000000, output: 132000, input: ["image", "file"], cost: "low", capability: "standard", efforts: ["low", "high", "max"] },
|
||
"deepseek-v4-flash": { name: "DeepSeek V4 Flash", context: 1048000, output: 232000, cost: "medium", capability: "standard", efforts: ["low", "high", "max"] },
|
||
"deepseek-v4-flash-vision-exp": { name: "DeepSeek V4 Flash Vision (exp)", context: 1048000, output: 232000, input: ["image"], cost: "medium", capability: "standard", efforts: ["low", "high", "max"] },
|
||
"deepseek-v4-pro": { name: "DeepSeek V4 Pro", context: 1048000, output: 232000, cost: "high", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
"deepseek-v4.1-flash": { name: "DeepSeek V4.1 Flash", context: 1048000, output: 232000, input: ["image"], cost: "low", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
// the same model on the low-priority, high-quota schedule: same limits, same
|
||
// measured levels as the line above (its rate, 0.27×, is rates.mjs's)
|
||
"deepseek-v4.1-flash-eco": { name: "DeepSeek V4.1 Flash Eco", context: 1048000, output: 232000, input: ["image"], cost: "low", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
"glm-5.3-flash": { name: "GLM 5.3 Flash", context: 1048000, output: 232000, input: ["image", "video"], cost: "low", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
"glm-5.3-flashx": { name: "GLM 5.3 FlashX", context: 1000000, output: 232000, input: ["image", "file", "video"], cost: "medium", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
"gpt-6-luna": { name: "GPT-6 Luna", context: 1050000, output: 304000, input: ["image", "file"], cost: "low", capability: "standard", efforts: [] },
|
||
"kimi-k2.7-code": { name: "Kimi K2.7 Code", context: 262000, output: 262000, input: ["image"], cost: "medium", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
"mimo-v2.6-flash": { name: "MiMo V2.6 Flash", context: 1048000, output: 232000, input: ["image", "audio", "video"], cost: "low", capability: "standard", efforts: ["low", "high", "max"] },
|
||
"mimo-v2.6-pro": { name: "MiMo V2.6 Pro", context: 1048000, output: 232000, input: ["image", "audio", "video"], cost: "medium", capability: "advanced", efforts: ["low", "high", "max"] },
|
||
}
|