Skip to content

fix: Honor stt_enabled config to disable voice transcription#1111

Closed
Jah-yee wants to merge 2 commits intoNousResearch:mainfrom
Jah-yee:fix/stt-config-check
Closed

fix: Honor stt_enabled config to disable voice transcription#1111
Jah-yee wants to merge 2 commits intoNousResearch:mainfrom
Jah-yee:fix/stt-config-check

Conversation

@Jah-yee
Copy link
Copy Markdown
Contributor

@Jah-yee Jah-yee commented Mar 12, 2026

Summary

This PR fixes the issue where the gateway ignores the stt.enabled: false setting in config.yaml and always attempts to call OpenAI Whisper API for voice messages.

Changes

  1. gateway/config.py: Added stt_enabled field to GatewayConfig dataclass with default value True (for backward compatibility)

  2. gateway/run.py: Added check for stt_enabled config at the start of _enrich_message_with_transcription() method. When disabled, returns a placeholder message instead of attempting transcription.

Fix

  • Immediate: Honor stt_enabled: false - skip transcription entirely when disabled
  • Users can now set stt_enabled: false in their gateway config to disable voice transcription

Closes #1100

Jah-yee added 2 commits March 12, 2026 16:38
Allows users to override the hardcoded 900s timeout when using
local LLM providers like Ollama or LM Studio.

Fixes NousResearch#1010
- Add stt_enabled field to GatewayConfig (default: True)
- Skip transcription and return placeholder message when disabled
- Fixes issue where gateway ignores stt.enabled: false in config
@imadreamerboy
Copy link
Copy Markdown

duplicate #1110

@teknium1
Copy link
Copy Markdown
Contributor

Superseded by PR #1394. The underlying stt.enabled problem was still real, but this branch was stale and also carried an unrelated timeout change that is already solved on current main via HERMES_API_TIMEOUT.

The merged fix came from salvaging PR #1110 onto current main and then extending it to the shared STT config path so stt.enabled: false is honored cleanly in today's codebase.

Thanks for working on the issue.

@teknium1 teknium1 closed this Mar 15, 2026
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.

STT config ignored: Gateway hardcodes OpenAI Whisper despite stt.enabled: false

3 participants