semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Python: support (Azure) OpenAI realtime audio models

Open moonbox3 opened this issue 1 month ago • 1 comments

Motivation and Context

SK has support for realtime-preview models; however, since they've gone to GA we have not added support for the latest library abstractions. This PR brings in the changes to support running models like gpt-realtime, gpt-realtime-mini or gpt-audio.

Description

  • Closes #13267
  • Code now relies on openai >= 2.0
  • Considered a breaking change due some new config added to the execution settings.

Contribution Checklist

moonbox3 avatar Oct 24 '25 04:10 moonbox3

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
connectors/ai/open_ai/prompt_execution_settings
   open_ai_realtime_execution_settings.py52786%99, 103, 107, 111, 115, 119, 123
connectors/ai/open_ai/services
   _open_ai_realtime.py45710177%288, 290, 292, 316, 378, 386, 430–434, 458–461, 552–553, 556–557, 567, 575–578, 585, 587, 590–591, 641–644, 653–656, 668–669, 713–715, 717–718, 721–722, 725, 736, 739, 741–743, 745–747, 786–787, 794–796, 815, 822, 827–829, 831–834, 841–843, 851–852, 856–860, 873–874, 879–881, 913, 916, 919–922, 927–929, 932–935, 937–941
   azure_realtime.py612952%104–105, 115–119, 140, 212–213, 223–230, 250, 255, 259–260, 267, 278–283
connectors/ai/open_ai/settings
   open_ai_settings.py150100% 
TOTAL27331458083% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3759 23 :zzz: 0 :x: 0 :fire: 1m 39s :stopwatch:

markwallace-microsoft avatar Oct 24 '25 04:10 markwallace-microsoft