feat(compute): 新增近期模型并更新预设数据至 v140 (#133)

新增13个精确规格和11条接入,保留既有默认兜底顺序;完善官方来源与兼容边界。175项测试、来源校验、冻结Schema、目录对照和远端安全检查通过。
This commit is contained in:
yige authored and GitHub committed 2026-11-17 01:03:51 +08:00
1 parent 2a042fa1c2
commit 5f08ae8648
88 files changed
+7768 -110

No files matched your search

+6
View File
@@ -67,6 +67,12 @@ test('订阅专属模型文档只接受对应供应商的精确官网域名', ()
assert.ok(sourceUrlError('anthropic', 'https://www.kimi.com/code/docs/en/'))
})
test('Google 新文档入口仅接受精确 AI Studio 官方域名', () => {
assert.equal(sourceUrlError('google', 'https://aistudio.google.com/docs/models/gemini-4-hydrogen.md'), null)
assert.ok(sourceUrlError('google', 'https://aistudio.google.com.example.org/docs/models'))
assert.ok(sourceUrlError('openai', 'https://aistudio.google.com/docs/models'))
})
test('端点变化也必须复核来源,即使模型参数完全未变', () => fixture(({ root, provider, dataPath }) => {
assert.equal(validateSources(root).errors.length, 0)
provider.baseUrl = 'https://api.openai.com/v1'