Merge pull request #1490 from NousResearch/fix/1033-telegram-voice-fallback

fix: restore local STT fallback for gateway voice notes
This commit is contained in:
Teknium 2026-03-15 21:58:32 -07:00 committed by GitHub
commit 70e24d77a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 324 additions and 18 deletions

View file

@ -3635,7 +3635,10 @@ class GatewayRunner:
)
else:
error = result.get("error", "unknown error")
if "No STT provider" in error or "not set" in error:
if (
"No STT provider" in error
or error.startswith("Neither VOICE_TOOLS_OPENAI_KEY nor OPENAI_API_KEY is set")
):
enriched_parts.append(
"[The user sent a voice message but I can't listen "
"to it right now~ No STT provider is configured "