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:
yige authored and GitHub committed 2026-11-01 17:58:04 +08:00
1 parent 30f65178cc
commit 3046afb9ca
47 files changed
+1512 -409

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ const stable = (value) => {
return value
}
export const modelFingerprint = (row) => createHash('sha256').update(JSON.stringify(stable(row))).digest('hex')
export const configFingerprint = (data) => modelFingerprint(Object.fromEntries(['id', 'provider', 'brandGroup', 'label', 'baseUrl', 'mediaBaseUrl', 'apiFormat', 'priceCurrency', 'services', 'accessMode', 'credentialSource', 'requiredClientVersion', 'tombstones', 'description', 'codingPlan'].filter((key) => key in data).map((key) => [key, data[key]])))
export const configFingerprint = (data) => modelFingerprint(Object.fromEntries(['id', 'provider', 'brandGroup', 'label', 'baseUrl', 'mediaBaseUrl', 'apiFormat', 'priceCurrency', 'services', 'accessMode', 'credentialMode', 'credentialSource', 'requiredClientVersion', 'tombstones', 'description', 'codingPlan'].filter((key) => key in data).map((key) => [key, data[key]])))
const get = (row, path) => path.split('.').reduce((value, key) => value?.[key], row)
const dateValid = (value) => /^\d{4}-\d{2}-\d{2}$/.test(value ?? '') && !Number.isNaN(Date.parse(value)) && new Date(value).toISOString().slice(0, 10) === value
const configSupplier = (config) => {