Skip to content

fix(speech): route flash ASR to sync endpoint - #150

Open
LauraGPT wants to merge 1 commit into
modelstudioai:mainfrom
LauraGPT:codex/fix-speech-flash-routing-20260812
Open

fix(speech): route flash ASR to sync endpoint#150
LauraGPT wants to merge 1 commit into
modelstudioai:mainfrom
LauraGPT:codex/fix-speech-flash-routing-20260812

Conversation

@LauraGPT

Copy link
Copy Markdown

Fixes #146.

What changed

  • route fun-asr-flash and qwen-audio-3.0-asr-flash model families to the synchronous multimodal generation endpoint
  • keep fun-asr and *-filetrans models on the existing asynchronous transcription endpoint
  • build the documented input_audio request body, infer the audio format, and preserve language/vocabulary options
  • reject async-only flags and multiple inputs early for Flash models
  • document model selection and add endpoint/request/response regression coverage

Root cause

speech recognize previously sent every model to /api/v1/services/audio/asr/transcription. Alibaba Cloud's HTTP API requires the Flash families to use /api/v1/services/aigc/multimodal-generation/generation synchronously, which caused the reported HTTP 400 URL error.

Validation

  • pnpm run sync:skill-assets
  • pnpm exec vp check
  • pnpm exec vp test --run
  • git diff --check
  • commands package: 325 passed, 174 environment-gated skipped
  • core and commands builds passed
  • local HTTP contract test verifies endpoint, headers, request body, stdout, and --out response persistence

A live Bailian request was not run because no DashScope API key is configured on the test host; the request contract is based on the official HTTP API documentation and exercised against a local HTTP server.

Signed-off-by: LauraGPT <LauraGPT@users.noreply.github.com>
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.

bl speech recognize 提示 url error, please check url!

1 participant