mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-12-05 15:00:59 +08:00
feat(compute): 新增近期模型并更新预设数据至 v140 (#133)
新增13个精确规格和11条接入,保留既有默认兜底顺序;完善官方来源与兼容边界。175项测试、来源校验、冻结Schema、目录对照和远端安全检查通过。
This commit is contained in:
88 files changed
+7768
-110
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user