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: draft initial implementation of Realtime API #10127

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eavanvalkenburg
Copy link
Member

Motivation and Context

Implements the OpenAI Realtime API with Semantic Kernel

Description

Implements a separate Service Client class with its own ExecutionSettings, but still based on ChatCompletionClientBase.
Only support streaming operations with additional public methods for sending data to the conversation.
TBD if that is the way to move forward with it.

TODO:

  • lots of comments
  • tests
  • cleanup

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.py127298%408, 418
   function_calling_utils.py511080%156–181
   realtime_client_base.py17476%51–52, 56, 140
semantic_kernel/connectors/ai/open_ai/services
   open_ai_realtime.py17759%46–58
   open_ai_realtime_base.py22912545%52, 67, 132–144, 150–152, 161–186, 190–275, 285–288, 294–304, 311–314, 323, 337, 351, 365, 387, 396, 405–424, 428–432
   open_ai_realtime_utils.py770%3–36
semantic_kernel/contents
   function_call_content.py106298%197, 225
   streaming_chat_message_content.py71199%227
TOTAL16963192289% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3000 4 💤 0 ❌ 0 🔥 1m 22s ⏱️

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

Successfully merging this pull request may close these issues.

3 participants