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

openai: better calculation for output tokens #512

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

brainexe
Copy link
Member

  • don't estimate, just count the stream updates

- don't estimate, just count the stream updates
@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (87f23d4) 82.57% compared to head (ecc20c3) 82.58%.

Files Patch % Lines
bot/tester/fake_server.go 0.00% 2 Missing and 1 partial ⚠️
command/openai/chatgpt.go 84.21% 2 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #512      +/-   ##
==========================================
+ Coverage   82.57%   82.58%   +0.01%     
==========================================
  Files         141      141              
  Lines        6456     6460       +4     
==========================================
+ Hits         5331     5335       +4     
+ Misses        983      981       -2     
- Partials      142      144       +2     

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

@brainexe brainexe merged commit 6f5473e into master Dec 14, 2023
13 checks passed
@brainexe brainexe deleted the openai_output branch December 14, 2023 14:49
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.

2 participants