-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: support for Assistant stream mode and implemented stream event callbacks #714
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #714 +/- ##
==========================================
- Coverage 98.46% 97.75% -0.72%
==========================================
Files 24 25 +1
Lines 1364 1200 -164
==========================================
- Hits 1343 1173 -170
Misses 15 15
- Partials 6 12 +6 ☔ View full report in Codecov by Sentry. |
This callback .On() method is really cool. Can't wait to use it for the assistant API and even for the normal chat completion. |
any update about this pr? |
examples/assistant-streaming/main.go
Outdated
if len(requiredActionRuns) > 0 { | ||
fmt.Println("Action required") | ||
for _, run := range requiredActionRuns { | ||
toolOuputs := []openai.ToolOutput{} |
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.
typo: toolOutputs
This update enhances the existing functionality by adding support for Assistant stream mode and stream event callbacks without introducing any breaking changes or modifications to the existing API endpoints.
The implemented features are in line with the OpenAI Assistant streaming API, as documented here: OpenAI Assistant Streaming API