-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
return usage for all providers - As OpenAI does #11
Comments
lol exact conclusion i landed on in #10 |
@ishaan-jaff doesn't the cohere response look broken -> it should have just returned the text. seems a bit weird to just nest the cohere object in there. |
For anthropic / replicate i just mapped the text output:
|
version 0.1.341 now returns token usage across all providers. Where possible it uses the providers own tokenizer (E.g. anthropic) else it defaults to tiktoken. |
commit: 7575d7e |
OpenAI returns usage for requests, but other providers - eg. Cohere does not.
Current Cohere return val from litellm - it's missing usage - which I need to calculate costs $
The text was updated successfully, but these errors were encountered: