mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-10-21 03:05:21 +08:00
MiniMax 官网 Messages API 参数参考(国内与国际站同页)写明 MiniMax-M3 的 max_tokens 推荐值 131072(128K)、上限 524288(512K),思考 token 计入上限; OpenAI 兼容 max_completion_tokens 同值。本仓 maxOutputTokens 是单次输出上限, 客户端出站准入按它拒绝超额请求,应登记上限而非推荐值。 - 规格 MiniMax-M3 的 maxOutputTokens 由 512000 更正为 524288 - 直连 provider-minimax-001 与 Token Plan provider-minimax-coding-001 的 131072 是沿用旧副本(V2 标注 inherited-not-reverified);二者同走 /anthropic 端点, 官网未按 Key 类型另设单次输出上限,删除接入覆盖、改为继承规格 - 上下文窗口 1,000,000 复核一致,不变 - 来源记录新增 minimax-messages-api,刷新 minimax-anthropic 读取日期与摘要; 规格决策清单两条 MiniMax-M3 差异改为 verified-official-limit - presetDataVersion 132,规格索引批次说明同步 Token Plan 账号下 M3 是否仍可调用未做账号实测;M2.x 的 131072 与官网上限 204800 的差异未在本次处理。
33 lines
2.4 KiB
JavaScript
33 lines
2.4 KiB
JavaScript
import {test} from 'node:test'
|
||
import assert from 'node:assert/strict'
|
||
import {readFileSync} from 'node:fs'
|
||
const read=path=>JSON.parse(readFileSync(new URL('../'+path,import.meta.url),'utf8'))
|
||
test('GPT-5.4 base cannot swallow distinct Nano, Pro or future variants',()=>{
|
||
const rows=read('compute/model-specs/openai.json').specs
|
||
const base=rows.find(x=>x.id==='gpt-5.4')
|
||
assert.equal(base.match.patterns,undefined)
|
||
assert.ok(base.match.exact.includes('gpt-5.4'))
|
||
for(const [id,window] of [['gpt-5.4-nano',400000],['gpt-5.4-pro',1050000]]){
|
||
const spec=rows.find(x=>x.id===id);assert.equal(spec.spec.contextWindow,window);assert.equal(spec.spec.maxOutputTokens,128000);assert.ok(spec.match.exact.includes(id))
|
||
}
|
||
})
|
||
test('identity-only coding variants cannot inherit family context, output or routing',()=>{
|
||
const rows=read('compute/model-specs/qwen.json').specs
|
||
for(const id of ['qwen3-coder-plus','qwen3-coder-next']){
|
||
const spec=rows.find(x=>x.id===id);assert.ok(spec.match.exact.includes(id));assert.deepEqual(Object.keys(spec.spec),['description']);assert.equal(spec.routing,undefined)
|
||
}
|
||
})
|
||
test('all recorded baseline differences and exceptions have explicit decisions',()=>{
|
||
const d=read('docs/plans/catalog-contract-migration/SPEC-DECISIONS.json')
|
||
assert.equal(d.bindings.length,24);assert.equal(d.differences.length,45);assert.equal(d.specOnly.length,58)
|
||
for(const row of [...d.differences,...d.specOnly]){assert.ok(row.classification);assert.ok(row.decision);assert.ok(row.reason)}
|
||
for(const row of d.accessExceptions){assert.equal(row.inheritFamily,false);assert.equal(row.automaticRouting,false);assert.equal(row.effectiveBinding,null)}
|
||
assert.ok(d.differences.some(r=>r.id==='gpt-5.4-nano'&&!r.currentDifferences.length))
|
||
// MiniMax-M3 直连/套餐的输出上限已按官网 Messages API 参考核对为 524288(2026-10-18),接入不再保留差异覆盖
|
||
const minimaxM3=d.differences.filter(r=>r.id==='MiniMax-M3')
|
||
assert.equal(minimaxM3.length,2)
|
||
for(const row of minimaxM3){assert.equal(row.classification,'verified-official-limit');assert.deepEqual(row.currentDifferences,[]);assert.equal(row.verifiedOverride,false)}
|
||
assert.ok(d.verifiedLimits.some(r=>r.vendor==='minimax'&&r.id==='MiniMax-M3'&&r.maxOutputTokens===524288&&r.contextWindow===1000000))
|
||
assert.equal(d.currentCounts.numericalDifferences,d.differences.filter(r=>r.currentDifferences.length).length)
|
||
})
|