Skip to content

🤖 fix: respect direct OpenAI voice routing#3090

Merged
ammario merged 1 commit intomainfrom
fix/voice-openai-direct-routing
Mar 29, 2026
Merged

🤖 fix: respect direct OpenAI voice routing#3090
ammario merged 1 commit intomainfrom
fix/voice-openai-direct-routing

Conversation

@ammar-agent
Copy link
Copy Markdown
Collaborator

Summary

Voice transcription now follows the same routing preference as OpenAI models, so putting Direct ahead of Mux Gateway in Settings keeps voice input on the direct OpenAI transcription endpoint.

Background

VoiceService hardcoded a gateway-first choice whenever both a Mux Gateway token and an OpenAI API key were present. That ignored Provider settings, where users can prefer direct routing for OpenAI, and made voice input unexpectedly go through Mux Gateway.

Implementation

  • route openai:whisper-1 through the shared routing resolver using the saved routePriority / routeOverrides
  • keep voice transcription scoped to the backends it actually supports today: direct OpenAI and Mux Gateway
  • add a regression test covering the direct-before-gateway provider ordering

Validation

  • bun test src/node/services/voiceService.test.ts
  • make typecheck
  • make static-check

Risks

Low and localized to voice transcription backend selection. The change only affects whether voice requests use direct OpenAI or Mux Gateway when both are configured.


Generated with mux • Model: openai:gpt-5.4 • Thinking: xhigh • Cost: $unknown

Respect provider route priority when choosing the voice transcription backend.

---

_Generated with `mux` • Model: `openai:gpt-5.4` • Thinking: `xhigh` • Cost: `$unknown`_

<!-- mux-attribution: model=openai:gpt-5.4 thinking=xhigh costs=unknown -->
@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@ammario ammario merged commit 3cec659 into main Mar 29, 2026
24 checks passed
@ammario ammario deleted the fix/voice-openai-direct-routing branch March 29, 2026 20:57
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.

2 participants