mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-10-21 02:24:36 +08:00
feat(compute): add DeepSeek V4.1 Flash alias (#104)
This commit is contained in:
@@ -300,6 +300,7 @@ describe('真实数据全量校验', () => {
|
|||||||
const specFile = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'deepseek.json'), 'utf8'))
|
const specFile = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'deepseek.json'), 'utf8'))
|
||||||
const serviceMap = JSON.parse(readFileSync(join(ROOT, 'compute', 'service-map.json'), 'utf8'))
|
const serviceMap = JSON.parse(readFileSync(join(ROOT, 'compute', 'service-map.json'), 'utf8'))
|
||||||
const modelId = 'deepseek-flash'
|
const modelId = 'deepseek-flash'
|
||||||
|
const aliasId = 'deepseek-v4.1-flash'
|
||||||
const model = provider.models.find((item) => item.modelName === modelId)
|
const model = provider.models.find((item) => item.modelName === modelId)
|
||||||
const modelSpec = specFile.specs.find((item) => item.id === modelId)
|
const modelSpec = specFile.specs.find((item) => item.id === modelId)
|
||||||
|
|
||||||
@@ -323,7 +324,12 @@ describe('真实数据全量校验', () => {
|
|||||||
])
|
])
|
||||||
|
|
||||||
assert.ok(modelSpec, `model-specs 缺少 ${modelId}`)
|
assert.ok(modelSpec, `model-specs 缺少 ${modelId}`)
|
||||||
assert.deepEqual(modelSpec.match.exact, [modelId])
|
assert.deepEqual(modelSpec.match.exact, [modelId, aliasId])
|
||||||
|
assert.equal(
|
||||||
|
specFile.specs.filter((item) => item.match?.exact?.includes(aliasId)).length,
|
||||||
|
1,
|
||||||
|
)
|
||||||
|
assert.ok(modelSpec.match.exact.includes(aliasId))
|
||||||
assert.equal(modelSpec.spec.contextWindow, 1000000)
|
assert.equal(modelSpec.spec.contextWindow, 1000000)
|
||||||
assert.equal(modelSpec.spec.maxOutputTokens, 384000)
|
assert.equal(modelSpec.spec.maxOutputTokens, 384000)
|
||||||
assert.ok(modelSpec.spec.capabilities.includes('vision'))
|
assert.ok(modelSpec.spec.capabilities.includes('vision'))
|
||||||
|
|||||||
@@ -165,7 +165,8 @@
|
|||||||
"family": "deepseek-flash",
|
"family": "deepseek-flash",
|
||||||
"match": {
|
"match": {
|
||||||
"exact": [
|
"exact": [
|
||||||
"deepseek-flash"
|
"deepseek-flash",
|
||||||
|
"deepseek-v4.1-flash"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"presetDataVersion": 117,
|
"presetDataVersion": 118,
|
||||||
"updatedAt": "2026-09-14",
|
"updatedAt": "2026-09-14",
|
||||||
"description": "DesireCore 官方配置中心"
|
"description": "DesireCore 官方配置中心"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user