-
-
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
Track pricing per request #10
Comments
What is the expected behavior from litellm? expose a spend calculating function?
?? |
I think what feels more natural is if
|
I did something like this of my own, but it's obviously not ideal when dealing with multiple providers (if it's not openai then i'm just assuming num tokens = length of string)
|
OpenAI response object:
|
I believe we're missing the usage details. |
Damn - both of us just had the same request, see #11 |
I need to map a completion / embedding request to $. Need a simple way to get '$' cost and write the cost to my DB.
Currently doing
The text was updated successfully, but these errors were encountered: