Skip to content

fix(asr): 适配火山 2.0 资源 ID 并稳定保存凭据#129

Merged
appergb merged 1 commit into
Open-Less:mainfrom
Cooper-X-Oak:codex/fix-volcengine-seedasr-resource
May 1, 2026
Merged

fix(asr): 适配火山 2.0 资源 ID 并稳定保存凭据#129
appergb merged 1 commit into
Open-Less:mainfrom
Cooper-X-Oak:codex/fix-volcengine-seedasr-resource

Conversation

@Cooper-X-Oak
Copy link
Copy Markdown
Contributor

摘要

Fixes #128

修复火山引擎新建 2.0 ASR 应用在 v1.2.8 默认配置下鉴权失败的问题,并让设置页凭据输入稳定写入本地配置。

修复 / 新增 / 改进

  • 将 Volcengine ASR 默认 Resource ID 从旧的 volc.bigasr.sauc.duration 改为 2.0 小时版 volc.seedasr.sauc.duration
  • 同步更新设置页 ASR Resource ID 默认值,避免新用户沿用旧资源名导致 403。
  • 修复 CredentialField 自动保存闭包可能读到旧 dirty=false 而跳过保存的问题;输入后 debounce、失焦保存、填默认值都会强制写入。

兼容

  • 不包含:真实 ASR 音频识别链路改动、火山协议帧格式改动、用户已有凭据迁移脚本。
  • 对现有用户 / 本地环境 / 构建流程的影响:已保存 Resource ID 的用户继续使用本地配置;未配置 Resource ID 或点击默认值的新用户会使用 2.0 小时版资源名。

测试计划

  • 命令:npm run build
  • 结果:通过,Vite 生产构建完成。
  • 证据路径:终端输出
  • 命令:cargo +stable-x86_64-pc-windows-gnu test --manifest-path src-tauri\Cargo.toml --no-run
  • 结果:通过,测试二进制完成编译;仅保留既有 warning。
  • 证据路径:终端输出
  • 命令:git diff --check
  • 结果:通过,无 whitespace error。
  • 证据路径:终端输出

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@appergb appergb merged commit 60b75de into Open-Less:main May 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[asr] 新建火山 2.0 应用默认资源 ID 鉴权失败

2 participants