Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Introducing Realtime Clients for OpenAI and Azure OpenAI #10127

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

eavanvalkenburg
Copy link
Member

@eavanvalkenburg eavanvalkenburg commented Jan 8, 2025

Motivation and Context

Implements the OpenAI Realtime API with Semantic Kernel

Description

Adds a RealtimeClientBase
Adds RealtimeEvents
Adds OpenAI Realtime clients

Closes: #10108

TODO:

  • tests

Contribution Checklist

@eavanvalkenburg eavanvalkenburg requested a review from a team as a code owner January 8, 2025 16:04
@eavanvalkenburg eavanvalkenburg marked this pull request as draft January 8, 2025 16:04
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Jan 8, 2025
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented Jan 9, 2025

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
semantic_kernel/connectors/ai
   chat_completion_client_base.py124298%395, 405
   function_calling_utils.py48688%161–173
   realtime_client_base.py33876%104, 111–112, 116, 132–135
semantic_kernel/connectors/ai/open_ai/services
   azure_config_base.py56296%95, 97
   azure_realtime.py411368%38–40, 99–116, 168
   open_ai_realtime.py411466%37–39, 86–100, 130, 151
semantic_kernel/connectors/ai/open_ai/services/realtime
   open_ai_realtime_base.py18013525%83–123, 144–193, 207–247, 255–428, 437–441, 447
   open_ai_realtime_webrtc.py1238531%60–62, 65–73, 83–128, 133–140, 143–173, 181–190, 194–213
   open_ai_realtime_websocket.py552653%46–61, 64–70, 80–83, 88–91
   utils.py403220%38–44, 54, 69–126
semantic_kernel/connectors/ai/open_ai/settings
   azure_open_ai_settings.py26485%119–122
semantic_kernel/contents
   audio_content.py21195%88
   binary_content.py1171587%99, 120, 126–128, 134, 147, 152–153, 194–199
   function_call_content.py107397%197, 225–226
TOTAL19438255587% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3200 5 💤 0 ❌ 0 🔥 1m 46s ⏱️

@eavanvalkenburg eavanvalkenburg mentioned this pull request Jan 31, 2025
5 tasks
@eavanvalkenburg eavanvalkenburg marked this pull request as ready for review February 17, 2025 16:01
@eavanvalkenburg eavanvalkenburg changed the title Python: draft initial implementation of Realtime API Python: Introducing Realtime Clients for OpenAI and Azure OpenAI Feb 17, 2025
Copy link

@Copilot 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.

Copilot reviewed 37 out of 37 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: add support for OpenAI realtime audio
4 participants