Repository navigation
fix(media): use default STT model for auto audio transcription (#63349) - #63472
neeravmakwana wants to merge 2 commits into
Conversation
Greptile SummaryThis PR fixes a bug where the active chat model ID (e.g. Confidence Score: 5/5Safe to merge — minimal, targeted fix with no side effects on image/video paths and explicit regression coverage. The change is a single-branch addition to a ternary in resolveActiveModelEntry, well-commented and scoped only to audio. The runProviderEntry fallback to resolveDefaultMediaModel was already in place and correct. All remaining observations are P2 or lower. No files require special attention.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d178873142
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| : params.capability === "audio" | ||
| ? undefined | ||
| : params.activeModel?.model; |
There was a problem hiding this comment.
Preserve explicit audio model overrides
This change makes resolveActiveModelEntry drop activeModel.model whenever the capability is audio, which means caller-provided overrides are no longer honored on the auto-entry path. As a result, flows that pass an explicit model (e.g. capability audio transcribe --model <provider/model>) now ignore that model and fall back to the provider default in runProviderEntry, changing user-requested behavior and potentially selecting an unintended STT model.
Useful? React with 👍 / 👎.
Follow-up: AI review (Codex P1 on
|
Summary
gpt-5.4) as the/audio/transcriptionsmodel. That endpoint expects speech-to-text models, so transcription could fail and voice notes surfaced as raw attachments with no transcript echo (tools.media.audio.echoTranscript).resolveActiveModelEntryno longer passes the chat model for theaudiocapability;runProviderEntrycontinues to resolve the provider default (e.g. OpenAIgpt-4o-transcribe) when no explicittools.media.audio.modelsentry applies.tools.media.audio.models, image/video active-model behavior, and non-auto entry paths are unchanged.Change Type
Scope
Linked Issue/PR
Root Cause
activeModelis set.Regression Test Plan
src/media-understanding/runner.auto-audio.test.tsactiveModel: { provider: "openai", model: "gpt-5.4" }→ transcription request usesgpt-4o-transcribe.User-visible / Behavior Changes
Security Impact
Changelog
CHANGELOG.md.Made with Cursor