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

Count tokens #42

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Count tokens #42

merged 2 commits into from
Aug 31, 2023

Conversation

RexWzh
Copy link
Member

@RexWzh RexWzh commented Aug 31, 2023

from openai_api_call import Chat
Chat("hello world").prompt_token()

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage: 69.23% and project coverage change: -1.91% ⚠️

Comparison is base (3523048) 92.63% compared to head (8f933d7) 90.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   92.63%   90.72%   -1.91%     
==========================================
  Files          14       14              
  Lines         611      658      +47     
==========================================
+ Hits          566      597      +31     
- Misses         45       61      +16     
Flag Coverage Δ
unittests 90.72% <69.23%> (-1.91%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
openai_api_call/response.py 82.97% <53.33%> (-13.95%) ⬇️
openai_api_call/chattool.py 89.74% <83.33%> (-0.83%) ⬇️
openai_api_call/__init__.py 93.75% <100.00%> (+0.13%) ⬆️
tests/test_async.py 100.00% <100.00%> (ø)

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

@RexWzh RexWzh merged commit 7dbdc02 into cubenlp:master Aug 31, 2023
4 of 6 checks passed
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