VoiceLive: 2026-06-01-preview API version patch#43472
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
Comment generated by summarize-checks workflow run. |
- Bug fix: rename RequestImageContentPart.url -> image_url across all API versions. The original 'url' wire field was never wired up server-side and never worked; the correct field name on the wire is 'image_url'. - Add client events input_text.delta and input_text.done (v2026-06-01-preview). - Add SmartEndOfTurnDetection (model='smart_end_of_turn_detection') as a new audio-based EOU variant with threshold_level and timeout_ms (v2026-06-01-preview).
88f1a83 to
a9ef02a
Compare
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
Comment generated by After APIView workflow run. |
There was a problem hiding this comment.
Pull request overview
This PR updates the VoiceLive TypeSpec source and generated OpenAPI with the intent of patching the in-flight 2026-06-01-preview API surface by (1) renaming the request image URL field, (2) adding new streaming client events for input text, and (3) adding a new audio-based end-of-turn detection variant.
Changes:
- Adds new client events
input_text.deltaandinput_text.done(TypeSpec + generated OpenAPI for2026-06-01-preview). - Adds
SmartEndOfTurnDetection(model: "smart_end_of_turn_detection") to EOU detection (TypeSpec + generated OpenAPI for2026-06-01-preview). - Renames
RequestImageContentPart.url→image_urland narrows the type to URI; however, the current change leaks into2026-01-01-previewand2026-04-10outputs (breaking older versions).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| specification/ai/data-plane/VoiceLive/stable/2026-04-10/VoiceLive.json | Renames RequestImageContentPart field to image_url (currently a breaking change in a stable version). |
| specification/ai/data-plane/VoiceLive/preview/2026-06-01-preview/VoiceLive.json | Adds new client event schemas/enum values and SmartEndOfTurnDetection; also includes a $ref+sibling keyword issue. |
| specification/ai/data-plane/VoiceLive/preview/2026-01-01-preview/VoiceLive.json | Renames RequestImageContentPart field to image_url (unexpectedly changes an older preview version). |
| specification/ai/data-plane/VoiceLive/models.tsp | Adds TypeSpec models for ClientEventInputTextDelta and ClientEventInputTextDone. |
| specification/ai/data-plane/VoiceLive/items.tsp | Renames RequestImageContentPart property to image_url and changes type to url (currently not properly version-gated). |
| specification/ai/data-plane/VoiceLive/events.tsp | Adds new ClientEventType union members for the input-text streaming events. |
| specification/ai/data-plane/VoiceLive/custom.tsp | Adds SmartEndOfTurnDetection and updates the EouDetection discriminator union to include the new model value. |
| "image_url": { | ||
| "type": "string", | ||
| "format": "uri" | ||
| }, |
| "image_url": { | ||
| "type": "string", | ||
| "format": "uri" | ||
| }, |
| "threshold_level": { | ||
| "$ref": "#/definitions/EouThresholdLevel", | ||
| "description": "Threshold level setting. One of `low`, `medium`, `high`, or `default`." | ||
| }, |
| /** Input image content part. */ | ||
| #suppress "@azure-tools/typespec-azure-core/casing-style" // Service message format is snake_case to remain close to OpenAI style. | ||
| @added(Versions.v2026_01_01_preview) | ||
| @usage(RequestUsage) | ||
| model RequestImageContentPart extends ContentPart { | ||
| type: ContentPartType.input_image; | ||
| url?: string; | ||
| image_url?: url; | ||
| detail?: RequestImageContentPartDetail; |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (1)
specification/ai/data-plane/VoiceLive/preview/2026-06-01-preview/VoiceLive.json:1838
- The discriminator enum for
EouDetection.modelhasx-ms-enumbut is missing aname(and avalueslist), which can lead to anonymous/unstable enum types in generated SDKs. Update JSON path$.definitions.EouDetection.properties.model.x-ms-enumto include a stablenameand explicitvalues, or (preferably, since this file is TypeSpec-generated) model this as a named TypeSpec union so the emitter can generate a properx-ms-enumblock.
"smart_end_of_turn_detection"
],
"x-ms-enum": {
"modelAsString": true
}
| model RequestImageContentPart extends ContentPart { | ||
| type: ContentPartType.input_image; | ||
| url?: string; | ||
| image_url?: url; | ||
| detail?: RequestImageContentPartDetail; |
| "image_url": { | ||
| "type": "string", | ||
| "format": "uri" | ||
| }, |
| "image_url": { | ||
| "type": "string", | ||
| "format": "uri" | ||
| }, |
| "image_url": { | ||
| "type": "string", | ||
| "format": "uri" | ||
| }, |
Summary
Patch to the in-flight VoiceLive 2026-06-01-preview API version, plus a cross-version bug fix for the image content part field name.
Changes
Bug fix — rename
RequestImageContentPart.url→image_url(all API versions)The original
urlfield was never wired up server-side and never accepted by the service; the correct wire field name isimage_url. Applied to all versions whereRequestImageContentPartexists (2026-01-01-preview, 2026-04-10, 2026-06-01-preview). Type also tightened fromstringtourl.input_text.delta/input_text.doneclient events (v2026-06-01-preview)New
ClientEventInputTextDeltaandClientEventInputTextDoneevents for streaming text input into a conversation item.SmartEndOfTurnDetectionaudio-based EOU variant (v2026-06-01-preview)New EOU detection model with
model: "smart_end_of_turn_detection"exposingthreshold_levelandtimeout_ms. The new literal is added to theEouDetectiondiscriminator inline union via@typeChangedFromso older API versions are not affected.parallel_tool_callssession option (v2026-06-01-preview)New optional
parallel_tool_callsboolean (defaulttrue) onSessionBase, controlling whether the model may issue tool calls in parallel. Applies to both request and response session payloads.Validation
tsp compilepasses cleanly.git diffconfirms older API versions only carry theurl→image_urlbug fix; all other changes are scoped to 2026-06-01-preview.