[Bug]: Transcription settings page cannot configure or update `transcription_model` — switching providers silently breaks transcription
Bug: Transcription settings page cannot configure or update transcription_model — switching providers silently breaks transcription
Environment
- QwenPaw version: 2.2.1 (pip install)
- OS: Linux (Arch, kernel 6.18)
- Frontend: Web console (Settings → Transcription)
Summary
The Settings page allows selecting any OpenAI-compatible provider for audio
transcription (PUT /workspace/transcription-provider), but there is no way
to view or set the transcription model name — neither in the UI nor via any
backend API. transcription_model stays at its default value "whisper-1"
(defined in config.py), which only exists on OpenAI. Switching to any other
provider (e.g. SiliconFlow) therefore produces requests that always fail with
400 - Model does not exist, while the UI reports the configuration as saved
successfully. The upstream error detail is also swallowed and replaced with a
generic message, making the failure undebuggable from the UI.
Steps to reproduce
- Install QwenPaw 2.2.1, open Web console → Settings.
- Set transcription provider type to
whisper_api. - Select a non-OpenAI provider (e.g.
siliconflow-cn, base URLhttps://api.siliconflow.cn/v1) and save. UI reports success. - Send/upload any voice message or use the transcribe endpoint.
Actual result: every transcription request fails. Server log shows:
openai.BadRequestError: Error code: 400 - {'code': 20012,
'message': 'Model does not exist. Please check it carefully.', 'data': None}…because the request still uses model whisper-1, and the API response shown
to the user is only a generic Transcription failed. Check provider configuration.
Expected result: either the model name should be configurable in the UI, or switching providers should update/select a default model supported by the chosen provider.
Root cause analysis
No write path for the model name. The routers only expose:
GET/PUT /workspace/transcription-provider-typeGET/PUT /workspace/transcription-provider(writestranscription_provider_idonly)POST /workspace/transcribe
grep -rn "transcription_model" src/qwenpaw/app/returns no API endpoint that writes it. The only places touching it are the field definition (config/config.py, default"whisper-1") and the reader inagents/utils/audio_transcription.py(model_name = load_config().agents.transcription_model or "whisper-1").Frontend has no model field. The console bundle contains the four transcription API wrappers above but no string for
transcription_model/ model-name input; the model-name inputs that do exist in Settings belong to the embedding/reranker sections.Error detail is swallowed.
_transcribe_whisper_apicatches the exception and returnsNone;POST /workspace/transcribemapsNonetoHTTPException(500, "Transcription failed. Check provider configuration."). The400 Model does not existdetail never reaches the UI, so the user cannot tell that the model name is the problem.
Net effect: any provider whose model naming differs from OpenAI (SiliconFlow's
FunAudioLLM/SenseVoiceSmall, local Whisper servers, etc.) is silently
misconfigured after being "successfully" saved.
Suggested fixes (any combination)
- Minimal: when
PUT /transcription-providerchanges the provider, also accept an optionalmodelfield (or add a dedicatedPUT /workspace/transcription-modelendpoint) and expose the model name input in the Settings page next to the provider selector. - Better UX: maintain per-provider default transcription models (e.g.
whisper-1for OpenAI,FunAudioLLM/SenseVoiceSmallfor SiliconFlow) and auto-select/validate on provider switch. - Error transparency: include the upstream error message (status code +
Model does not exist) in thePOST /transcribefailure response and/or surface it in the console, so misconfiguration is diagnosable without reading server logs.
Workaround
Manually edit ~/.qwenpaw/config.json:
"transcription_model": "FunAudioLLM/SenseVoiceSmall"then reload. Verified working end-to-end with SiliconFlow on 2.2.1.
Happy to test a fix. Thanks for QwenPaw!
Source: agentscope-ai/QwenPaw