mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-12-05 20:00:22 +08:00
fix(compute): 语音识别预置可用化并更新预设数据至 v135 (#128)
百炼 paraformer-v2 与本地 Whisper 的预置没有语音协议,解析报 missing_model_profile,用户选了也用不了。 - 百炼预置改用 fun-asr-realtime,paraformer-v2 只接受公网 URL,移出接入面并写入 tombstones,规格保留。 - 本地 Whisper 绑定独立规格 whisper-large-v3,声明 credentialMode: none;该字段只进 V1 投影,已发布客户端的 V2 连接 Schema 不接受。 - OpenAI 新增 gpt-transcribe,whisper-1 记录 2027-02-26 停服并暂留。 - 同步官方来源、模型与平台指纹、适配与规格决策记录、来源缺口清单和回归测试。
This commit is contained in:
47 files changed
+1512
-409
No files matched your search
@@ -95,15 +95,15 @@ test('explicit access-local/dynamic contracts stay callable on known adapters bu
|
||||
assert.ok(resolveEffectiveModel(spec,m,{...options,connection:{apiFormat:'not-implemented'}}).blockedReasons.includes('unknown-adapter'));
|
||||
}
|
||||
});
|
||||
test('all 36 confirmed unimplemented native models remain visible and cannot call or auto route',()=>{
|
||||
test('all 34 confirmed unimplemented native models remain visible and cannot call or auto route',()=>{
|
||||
const decisions=JSON.parse(fs.readFileSync(path.join(root,'docs/plans/catalog-contract-migration/ADAPTER-DECISIONS.json'),'utf8')).decisions;
|
||||
assert.equal(decisions.length,36);let count=0;
|
||||
assert.equal(decisions.length,34);let count=0;
|
||||
for(const decision of decisions){
|
||||
const access=catalog.accesses.find(a=>a.metadata.sourceFile===decision.file),m=access.models.find(m=>m.apiModelId===decision.apiModelId),s=catalog.specs.find(s=>s.modelRef===m.modelRef);
|
||||
assert.equal(m.protocol.state,'unsupported',`${decision.file}:${m.apiModelId}`);assert.ok(m.protocol.reason);assert.equal(m.protocol.requiredClientVersion,undefined);
|
||||
const result=resolveEffectiveModel(s,m,{...options,connection:access.connection});assert.equal(result.eligibleForCall,false);assert.equal(result.eligibleForAutoRouting,false);assert.ok(result.blockedReasons.includes('unsupported-adapter'));count++;
|
||||
}
|
||||
assert.equal(count,36);
|
||||
assert.equal(count,34);
|
||||
});
|
||||
test('actual outgoing aliases survive canonical transport IDs and V1 projection',()=>{
|
||||
const expected={ 'glm-5.2':'glm-5.2[1m]','doubao-seed-2.1-pro':'doubao-seed-2-1-pro-260628','doubao-seed-2.1-turbo':'doubao-seed-2-1-turbo-260628'};
|
||||
|
||||
Reference in new issue
Block a user