Skip to content

fix(ResponseAPILoggingUtils): extract input tokens details as dict#20046

Merged
Sameerlite merged 1 commit intoBerriAI:litellm_files_gemini_endpoints_supportfrom
nht1206:bugfix/input-tokens-details-not-correctly-extracted
Jan 30, 2026
Merged

fix(ResponseAPILoggingUtils): extract input tokens details as dict#20046
Sameerlite merged 1 commit intoBerriAI:litellm_files_gemini_endpoints_supportfrom
nht1206:bugfix/input-tokens-details-not-correctly-extracted

Conversation

@nht1206
Copy link
Contributor

@nht1206 nht1206 commented Jan 30, 2026

Relevant issues

Fixes #20043

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
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🐛 Bug Fix

Changes

Handle the input_tokens_details in case it is in the dict type

After

image image

@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Error Error Jan 30, 2026 4:02am

Request Review

@CLAassistant
Copy link

CLAassistant commented Jan 30, 2026

CLA assistant check
All committers have signed the CLA.

@nht1206 nht1206 marked this pull request as ready for review January 30, 2026 04:19
@Sameerlite Sameerlite changed the base branch from main to litellm_files_gemini_endpoints_support January 30, 2026 10:43
@Sameerlite Sameerlite merged commit ab8b459 into BerriAI:litellm_files_gemini_endpoints_support Jan 30, 2026
4 of 9 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.

[Bug]: Incorrect Token Pricing Calculation for Image Input Tokens

3 participants