mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-09-05 17:33:40 +08:00
feat(compute): add Ox Alpha model (#77)
This commit is contained in:
@@ -244,6 +244,35 @@ describe('真实数据全量校验', () => {
|
|||||||
assert.ok(specs[0].spec.capabilities.includes('asr'))
|
assert.ok(specs[0].spec.capabilities.includes('asr'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('Ox Alpha 应提供与 OpenRouter 一致的多模态推理规格', () => {
|
||||||
|
const provider = JSON.parse(readFileSync(join(ROOT, 'compute', 'providers', 'openrouter.json'), 'utf8'))
|
||||||
|
const specFile = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'stealth.json'), 'utf8'))
|
||||||
|
const model = provider.models.find((item) => item.modelName === 'stealth/ox-alpha')
|
||||||
|
const modelSpec = specFile.specs.find((item) => item.id === 'ox-alpha')
|
||||||
|
|
||||||
|
assert.ok(model, 'OpenRouter provider 缺少 stealth/ox-alpha')
|
||||||
|
assert.ok(modelSpec, 'model-specs 缺少 ox-alpha')
|
||||||
|
|
||||||
|
for (const item of [model, modelSpec.spec]) {
|
||||||
|
assert.equal(item.contextWindow, 1048576)
|
||||||
|
assert.equal(item.maxOutputTokens, 131072)
|
||||||
|
assert.equal(item.defaultTemperature, 1)
|
||||||
|
assert.equal(item.defaultTopP, 0.95)
|
||||||
|
assert.ok(item.capabilities.includes('reasoning'))
|
||||||
|
assert.ok(item.capabilities.includes('vision'))
|
||||||
|
assert.ok(item.capabilities.includes('video_understanding'))
|
||||||
|
}
|
||||||
|
|
||||||
|
assert.deepEqual(model.extra.reasoning.supportedEfforts, ['low', 'high', 'max'])
|
||||||
|
assert.equal(model.extra.reasoning.defaultEffort, 'max')
|
||||||
|
assert.equal(model.extra.thinking.disableSupported, false)
|
||||||
|
assert.equal(model.inputPrice, 0)
|
||||||
|
assert.equal(model.outputPrice, 0)
|
||||||
|
assert.deepEqual(modelSpec.match.exact, ['stealth/ox-alpha'])
|
||||||
|
assert.equal(modelSpec.spec.supportsReasoning, true)
|
||||||
|
assert.equal(modelSpec.spec.releasedAt, '2026-08-21')
|
||||||
|
})
|
||||||
|
|
||||||
it('MiMo V2.5 仅非 Pro 型号应声明多模态能力', () => {
|
it('MiMo V2.5 仅非 Pro 型号应声明多模态能力', () => {
|
||||||
const provider = JSON.parse(readFileSync(join(ROOT, 'compute', 'providers', 'xiaomi.json'), 'utf8'))
|
const provider = JSON.parse(readFileSync(join(ROOT, 'compute', 'providers', 'xiaomi.json'), 'utf8'))
|
||||||
const specFile = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'xiaomi.json'), 'utf8'))
|
const specFile = JSON.parse(readFileSync(join(ROOT, 'compute', 'model-specs', 'xiaomi.json'), 'utf8'))
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
"tencent",
|
"tencent",
|
||||||
"volcengine",
|
"volcengine",
|
||||||
"xunfei",
|
"xunfei",
|
||||||
|
"stealth",
|
||||||
"happyhorse"
|
"happyhorse"
|
||||||
],
|
],
|
||||||
"routingTiers": [
|
"routingTiers": [
|
||||||
|
|||||||
45
compute/model-specs/stealth.json
Normal file
45
compute/model-specs/stealth.json
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"description": "Stealth 系列模型规格。参数来源:OpenRouter Models API。",
|
||||||
|
"specs": [
|
||||||
|
{
|
||||||
|
"id": "ox-alpha",
|
||||||
|
"displayName": "Ox Alpha",
|
||||||
|
"family": "ox-alpha",
|
||||||
|
"match": {
|
||||||
|
"exact": [
|
||||||
|
"stealth/ox-alpha"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"contextWindow": 1048576,
|
||||||
|
"maxOutputTokens": 131072,
|
||||||
|
"capabilities": [
|
||||||
|
"chat",
|
||||||
|
"reasoning",
|
||||||
|
"deep_thinking",
|
||||||
|
"code",
|
||||||
|
"tool_use",
|
||||||
|
"agent",
|
||||||
|
"long_context",
|
||||||
|
"vision",
|
||||||
|
"image_understanding",
|
||||||
|
"video_understanding"
|
||||||
|
],
|
||||||
|
"serviceType": [
|
||||||
|
"chat",
|
||||||
|
"reasoning",
|
||||||
|
"vision"
|
||||||
|
],
|
||||||
|
"defaultTemperature": 1,
|
||||||
|
"defaultTopP": 0.95,
|
||||||
|
"supportsReasoning": true,
|
||||||
|
"description": "Ox Alpha 多模态推理模型,面向编程、长程 Agent、复杂推理与生产工作负载",
|
||||||
|
"extra": {
|
||||||
|
"thinkingDefault": true,
|
||||||
|
"thinkingOnly": true
|
||||||
|
},
|
||||||
|
"releasedAt": "2026-08-21"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -9,8 +9,54 @@
|
|||||||
"enabled": false,
|
"enabled": false,
|
||||||
"status": "unconfigured",
|
"status": "unconfigured",
|
||||||
"priceCurrency": "USD",
|
"priceCurrency": "USD",
|
||||||
"services": ["chat"],
|
"services": [
|
||||||
|
"chat",
|
||||||
|
"reasoning",
|
||||||
|
"vision"
|
||||||
|
],
|
||||||
"models": [
|
"models": [
|
||||||
|
{
|
||||||
|
"modelName": "stealth/ox-alpha",
|
||||||
|
"displayName": "Ox Alpha (免费)",
|
||||||
|
"serviceType": [
|
||||||
|
"chat",
|
||||||
|
"reasoning",
|
||||||
|
"vision"
|
||||||
|
],
|
||||||
|
"description": "通过 OpenRouter 免费使用的 Ox Alpha,面向编程、长程 Agent 与复杂推理,支持文本、图片和视频输入",
|
||||||
|
"contextWindow": 1048576,
|
||||||
|
"maxOutputTokens": 131072,
|
||||||
|
"capabilities": [
|
||||||
|
"chat",
|
||||||
|
"reasoning",
|
||||||
|
"deep_thinking",
|
||||||
|
"code",
|
||||||
|
"tool_use",
|
||||||
|
"agent",
|
||||||
|
"long_context",
|
||||||
|
"vision",
|
||||||
|
"image_understanding",
|
||||||
|
"video_understanding"
|
||||||
|
],
|
||||||
|
"inputPrice": 0.00,
|
||||||
|
"outputPrice": 0.00,
|
||||||
|
"defaultTemperature": 1,
|
||||||
|
"defaultTopP": 0.95,
|
||||||
|
"extra": {
|
||||||
|
"reasoning": {
|
||||||
|
"supportedEfforts": [
|
||||||
|
"low",
|
||||||
|
"high",
|
||||||
|
"max"
|
||||||
|
],
|
||||||
|
"defaultEffort": "max"
|
||||||
|
},
|
||||||
|
"thinking": {
|
||||||
|
"default": "enabled",
|
||||||
|
"disableSupported": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"modelName": "openrouter/auto",
|
"modelName": "openrouter/auto",
|
||||||
"displayName": "OpenRouter Auto",
|
"displayName": "OpenRouter Auto",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"presetDataVersion": 90,
|
"presetDataVersion": 91,
|
||||||
"updatedAt": "2026-08-10",
|
"updatedAt": "2026-08-21",
|
||||||
"description": "DesireCore 官方配置中心"
|
"description": "DesireCore 官方配置中心"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user