Fix spend tracking by tag issue (#8439)
Title
Fix spend tracking by tag issue (#8439)
Relevant issues
[Bug]: Cannot track spend by tag with /audio/transcription endpoint #8439
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
- I have Added testing in the
tests/litellm/directory, Adding at least 1 test is a hard requirement - see details - I have added a screenshot of my new test passing locally
- My PR passes all unit tests on (
make test-unit)[https://docs.litellm.ai/docs/extras/contributing_code] - My PR's scope is as isolated as possible, it only solves 1 specific problem
Type
🐛 Bug Fix
Changes
Fix ensures that when a string is encountered, it's properly parsed before being used, preventing the TypeError from occurring. Now, users can successfully track spend by tags for the /audio/transcription endpoint, just like they can with the /chat/completions and /audio/speech endpoints.
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 | Mar 20, 2025 1:14am |
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.