Skip to content

feat: support for Assistant stream mode and implemented stream event callbacks #713

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

Closed
wants to merge 4 commits into from

Conversation

CallOrRet
Copy link

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

Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 97.75%. Comparing base (774fc9d) to head (8708d21).
Report is 4 commits behind head on master.

Files Patch % Lines
assistant_stream.go 77.77% 4 Missing and 4 partials ⚠️
stream_reader.go 86.66% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #713      +/-   ##
==========================================
- 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.
📢 Have feedback on the report? Share it here.

@CallOrRet CallOrRet closed this Apr 16, 2024
@chrbsg
Copy link
Contributor

chrbsg commented Oct 7, 2024

@CallOrRet Why was this PR closed? It looks like go-openai still does not support assistant streaming?

@chrbsg
Copy link
Contributor

chrbsg commented Oct 7, 2024

I didn't see an issue for this so I opened #868

@peimanja
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants