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

Enable Streaming for OpenAI-compatible models #210

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

svilupp
Copy link
Owner

@svilupp svilupp commented Sep 18, 2024

Updated

  • Enabled Streaming for OpenAI-compatible APIs (eg, DeepSeek Coder)
  • If streaming to stdout, also print a newline at the end of streaming (to separate multiple outputs).

Fixed

  • Relaxed the type-assertions in StreamCallback to allow for more flexibility.

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 12.00000% with 22 lines in your changes missing coverage. Please review.

Project coverage is 91.39%. Comparing base (f20f3b9) to head (e1c8fdf).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/llm_openai.jl 8.69% 21 Missing ⚠️
src/streaming.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #210      +/-   ##
==========================================
- Coverage   91.76%   91.39%   -0.38%     
==========================================
  Files          46       46              
  Lines        4360     4415      +55     
==========================================
+ Hits         4001     4035      +34     
- Misses        359      380      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@svilupp svilupp merged commit 826fceb into main Sep 18, 2024
3 of 6 checks passed
@svilupp svilupp deleted the enable-streaming-for-custom-openAI branch September 18, 2024 19:20
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.

1 participant