Skip to content

[voicelive] Replace deprecated models in live tests#49085

Merged
xitzhang merged 5 commits intomainfrom
xitzhang/fixlivetest
May 7, 2026
Merged

[voicelive] Replace deprecated models in live tests#49085
xitzhang merged 5 commits intomainfrom
xitzhang/fixlivetest

Conversation

@xitzhang
Copy link
Copy Markdown
Member

@xitzhang xitzhang commented May 7, 2026

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

…me in live tests

Per https://developers.openai.com/api/docs/deprecations, gpt-4o-realtime, gpt-4o-realtime-preview, and gpt-4o-realtime-preview-2025-06-03 are deprecated (shutdown 2026-05-07). Replace with the rolling alias gpt-realtime across live test parameter providers and consolidate the three duplicate MODEL_GPT_4O_REALTIME* constants in VoiceLiveTestBase into a single MODEL_GPT_REALTIME.

Also simplify the WHISPER_1 vs AZURE_SPEECH selector in getSpeechRecognitionSetting to match the new model prefix.
Copilot AI review requested due to automatic review settings May 7, 2026 01:40
@xitzhang
Copy link
Copy Markdown
Member Author

xitzhang commented May 7, 2026

/azp run python - azure-ai-voicelive - tests

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the VoiceLive live test suite to stop using deprecated “gpt-4o--realtime” model identifiers and instead use the newer gpt-realtime model naming, keeping the tests aligned with currently supported model IDs.

Changes:

  • Replaced deprecated realtime model strings/constants with gpt-realtime across multiple live tests.
  • Simplified VoiceLiveTestBase model constants (remove old realtime variants; introduce MODEL_GPT_REALTIME).
  • Updated speech recognition setting selection logic to key off the new realtime model prefix.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveVoicePropertiesTests.java Updates parameterized model IDs to use gpt-realtime.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTurnDetectionTests.java Switches realtime model constant usage; updates one multilingual case label; retains Python-parity comment that needs refresh.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTranscriptionTests.java Replaces deprecated realtime model usage with gpt-realtime for transcription scenarios.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveToolCallTests.java Moves tool-call test coverage from gpt-4o-realtime* to MODEL_GPT_REALTIME; retains one Python-parity comment that needs refresh.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveTestBase.java Removes deprecated realtime model constants, introduces MODEL_GPT_REALTIME, and updates transcription-model selection logic.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveConversationTests.java Updates conversation test model parameterization to gpt-realtime.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveAudioTests.java Updates audio live test model parameterization to gpt-realtime.
sdk/voicelive/azure-ai-voicelive/src/test/java/com/azure/ai/voicelive/livetests/VoiceLiveAudioFormatTests.java Updates audio format matrix to use gpt-realtime where applicable.

@xitzhang
Copy link
Copy Markdown
Member Author

xitzhang commented May 7, 2026

/azp run java - azure-ai-voicelive - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xitzhang
Copy link
Copy Markdown
Member Author

xitzhang commented May 7, 2026

/azp run java - azure-ai-voicelive - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xitzhang
Copy link
Copy Markdown
Member Author

xitzhang commented May 7, 2026

/azp run java - azure-ai-voicelive - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xitzhang
Copy link
Copy Markdown
Member Author

xitzhang commented May 7, 2026

/azp run java - azure-ai-voicelive - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xitzhang xitzhang merged commit 5a4fc78 into main May 7, 2026
19 of 30 checks passed
@xitzhang xitzhang deleted the xitzhang/fixlivetest branch May 7, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants