-
-
Notifications
You must be signed in to change notification settings - Fork 539
Test/realtime chat #1034
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
base: master
Are you sure you want to change the base?
Test/realtime chat #1034
Conversation
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
{ | ||
await hub.ConnectToModel(async data => | ||
{ | ||
await SendEventToUser(webSocket, data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Check WebSocket state
await SendEventToUser(webSocket, data); | |
if (webSocket.State == WebSocketState.Open) | |
{ | |
await SendEventToUser(webSocket, data); | |
} |
convService.SetConversationId(conversationId, []); | ||
await convService.GetConversationRecordOrCreateNew(agentId); | ||
|
||
var buffer = new byte[1024 * 32]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Type
enhancement
Description
Introduced
ChatStreamMiddleware
for real-time chat streaming via WebSocketsAdded models for chat stream event deserialization
Refactored and improved real-time completion providers for OpenAI and Google AI
Registered new middleware in web application startup
Minor bug fixes and code cleanups in related files
Changes walkthrough 📝
15 files
Add middleware for real-time chat streaming via WebSockets
Add models for chat stream event deserialization
Register new chat streaming middleware in app startup
Add global using for chat stream models
Rename middleware class for chat hub
Refactor Google AI real-time provider for clarity and maintainability
Refactor OpenAI real-time provider and improve session handling
Make chat session class internal and update type names
Make async websocket data collection result class internal
Make async websocket data result enumerator class internal
Make pipeline response class internal
Rename session update class for clarity
Refactor model connection call for clarity
Refactor Connect method signature for readability
Increase buffer size for audio streaming
1 files
Remove unused parameter in agent options retrieval
1 files
Comment out hosted service registration for crontab
2 files
Add newline and formatting for model class
Add newline at end of file