litellm
litellm copied to clipboard
Fix incorrect cost calculation when creation cached input tokens in Anthropic
Fix incorrect cost calculation when creation cached input tokens in Anthropic
Relevant issues
Fixes #6575
Type
🐛 Bug Fix
Changes
Stopped double counting the tokens.
[REQUIRED] Testing - Attach a screenshot of any new tests passing locall
There don't seem to be any tests of this function? Seems out of scope for this bug fix to add them.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| litellm | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 4, 2024 0:25am |
Is there an update?
I think it has been fixed recently. How about closing the PR and the issue?
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.