support realtime transcription intent#1974
Conversation
| } else { | ||
| url.searchParams.set('model', config.model!); | ||
| if (intent) { | ||
| url.searchParams.set('intent', intent); |
There was a problem hiding this comment.
i think this still makes transcription connections fail for the standard OpenAI path. intent only exists on the model variant, so this branch always emits both model and intent=transcription. the realtime API rejects transcription sessions when a model query parameter is present (invalid_model); the documented URL is just ...?intent=transcription, with the transcription model selected in session.update. could we model transcription as a third connection variant that emits intent without model or deployment? thanks!
c40d18d to
a5b8030
Compare
|
thanks, that was right. i changed this to model transcription as a separate connection variant instead of adding updated behavior:
I also updated the realtime tests to cover the intent-only URLs and the invalid mixed-target cases. |
summary
intent: 'transcription'realtime connection optionwhy
intent=transcription, but the SDK only exposedmodel/deploymentNameandcallIDconnection targetsvalidation