-
-
Notifications
You must be signed in to change notification settings - Fork 579
add realtime options #1174
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
add realtime options #1174
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Add realtime options support for audio format configuration
Extend interfaces and implementations to pass options through the chain
Create new
RealtimeOptions
model for input/output audio formatsUpdate OpenAI provider to use options with fallback to settings
Diagram Walkthrough
File Walkthrough
IRealTimeCompletion.cs
Add SetOptions method to IRealTimeCompletion interface
src/Infrastructure/BotSharp.Abstraction/MLTasks/IRealTimeCompletion.cs
SetOptions
method to interface for realtime configurationIRealtimeHub.cs
Extend ConnectToModel with options parameter
src/Infrastructure/BotSharp.Abstraction/Realtime/IRealtimeHub.cs
RealtimeOptions
parameter toConnectToModel
methodRealtimeOptions.cs
Create RealtimeOptions model for audio configuration
src/Infrastructure/BotSharp.Abstraction/Realtime/Models/RealtimeOptions.cs
RealtimeHub.cs
Implement options support in RealtimeHub service
src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs
ConnectToModel
methodSetOptions
callChatStreamMiddleware.cs
Update middleware to handle realtime options
src/Plugins/BotSharp.Plugin.ChatHub/ChatStreamMiddleware.cs
ChatStreamRequest
instead of statesChatStreamRequest.cs
Add realtime options to ChatStreamRequest model
src/Plugins/BotSharp.Plugin.ChatHub/Models/Stream/ChatStreamRequest.cs
Options
property of typeRealtimeOptions
RealTimeCompletionProvider.cs
Add SetOptions stub to Google AI provider
src/Plugins/BotSharp.Plugin.GoogleAI/Providers/Realtime/RealTimeCompletionProvider.cs
SetModelName
method to end of classSetOptions
implementationRealTimeCompletionProvider.cs
Implement realtime options in OpenAI provider
src/Plugins/BotSharp.Plugin.OpenAI/Providers/Realtime/RealTimeCompletionProvider.cs
_realtimeOptions
field to store optionsSetOptions
method to store options