mirror of
https://git.openapi.site/https://github.com/desirecore/config-center.git
synced 2026-12-05 17:00:31 +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
@@ -51,7 +51,7 @@ export function projectV1(catalog){
|
||||
else throw new Error(`Missing projection ${model.apiModelId}.${key}`);
|
||||
}
|
||||
return out;
|
||||
});outputs[access.metadata.sourceFile]={...clone(access.connection),models};
|
||||
});outputs[access.metadata.sourceFile]={...clone(access.connection),...clone(access.metadata.v1Connection??{}),models};
|
||||
}
|
||||
return outputs;
|
||||
}
|
||||
@@ -76,7 +76,11 @@ export function compileCatalog(catalog){
|
||||
// Projection-only metadata never enters the runtime contract; useful descriptive values remain non-consumed.
|
||||
delete output.metadata.specFiles;
|
||||
for(const spec of output.specs){delete spec.metadata.projection;delete spec.metadata.legacyIdentity;}
|
||||
for(const access of output.accesses)for(const model of access.models)delete model.metadata.projection;
|
||||
for(const access of output.accesses){
|
||||
// V1-only connection fields: released clients reject unknown V2 connection keys, so they must not reach compute/v2.
|
||||
delete access.metadata.v1Connection;
|
||||
for(const model of access.models)delete model.metadata.projection;
|
||||
}
|
||||
output.digest=digest(output);
|
||||
const projection=projectV1(catalog);
|
||||
const diagnostics={specs:catalog.specs.length,accesses:catalog.accesses.length,models:catalog.accesses.reduce((n,a)=>n+a.models.length,0),bindings:{},overrides:[],publication:catalog.publication};
|
||||
|
||||
Reference in new issue
Block a user