Files
litellm/tests
Kerem TurgutluandGitHub 8c8d1debee fix: preserve usage/cached_tokens in Responses API streaming bridge (#22194)
The response.completed handler in the completion→responses streaming
bridge was discarding the usage object, causing prompt_tokens_details
(and cached_tokens) to always be None when streaming with models that
use the Responses API (e.g. gpt-5.2-codex, gpt-5.3-codex).

Extract usage from the response.completed event and translate it via
the existing _transform_response_api_usage_to_chat_usage helper.

Fixes #22192
2026-03-02 21:51:06 -08:00
..
2026-02-28 09:46:35 -08:00
2026-02-21 15:48:26 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00
2026-02-28 09:46:35 -08:00

In total litellm runs 1000+ tests

[02/20/2025] Update:

To make it easier to contribute and map what behavior is tested,

we've started mapping the litellm directory in tests/test_litellm

This folder can only run mock tests.