#8035·QwenPaw

[Bug]: Transcription settings page cannot configure or update `transcription_model` — switching providers silently breaks transcription

Author: h4rm00nCreated Sep 29, 2026Updated Sep 30, 2026
Labelsbug

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

  1. Install QwenPaw 2.2.1, open Web console → Settings.
  2. Set transcription provider type to whisper_api.
  3. Select a non-OpenAI provider (e.g. siliconflow-cn, base URL https://api.siliconflow.cn/v1) and save. UI reports success.
  4. 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

  1. No write path for the model name. The routers only expose:

    • GET/PUT /workspace/transcription-provider-type
    • GET/PUT /workspace/transcription-provider (writes transcription_provider_id only)
    • 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 in agents/utils/audio_transcription.py (model_name = load_config().agents.transcription_model or "whisper-1").

  2. 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.

  3. Error detail is swallowed. _transcribe_whisper_api catches the exception and returns None; POST /workspace/transcribe maps None to HTTPException(500, "Transcription failed. Check provider configuration."). The 400 Model does not exist detail 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)

  1. Minimal: when PUT /transcription-provider changes the provider, also accept an optional model field (or add a dedicated PUT /workspace/transcription-model endpoint) and expose the model name input in the Settings page next to the provider selector.
  2. Better UX: maintain per-provider default transcription models (e.g. whisper-1 for OpenAI, FunAudioLLM/SenseVoiceSmall for SiliconFlow) and auto-select/validate on provider switch.
  3. Error transparency: include the upstream error message (status code + Model does not exist) in the POST /transcribe failure response and/or surface it in the console, so misconfiguration is diagnosable without reading server logs.

Workaround

Manually edit ~/.qwenpaw/config.json:

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!