mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
The cost module only prices now. Usage building moves into litellm/litellm_core_utils/usage: the token usage processors (base, realtime, Responses WebSocket) and the translation session seconds, get_usage_object and the usage shapes it reads, the transcription and interactions usage transformations, the cache token readers, the prompt and completion token detail parsers with the web search request readers, and the Bedrock guardrail trace parsing. object_mapping, object_items and is_str_keyed_dict move to core_helpers. Old paths keep a re-export only where tests import them: the three token usage processors from litellm.cost_calculator, get_web_search_requests and parse_prompt_tokens_details from llm_cost_calc.utils and bedrock_guardrail_trace from llm_cost_calc.guardrail_cost. The usage object transformation test moves with its module. |
||
|---|---|---|
| .. | ||
| file_search | ||
| litellm_completion_transformation | ||
| mcp | ||
| additional_tools.py | ||
| bridge_check.py | ||
| dispatch.py | ||
| main.py | ||
| retrieve_stream_query.py | ||
| sse_output_recovery.py | ||
| streaming_iterator.py | ||
| utils.py | ||