mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
* refactor(passthrough_endpoints-success-handler): refactor llm passthrough logging logic isolate the llm translation work to enable cost tracking on sdk * feat: initial implementation of passthrough SDK cost calculation enables bedrock passthrough cost tracking to work * feat(cost_calculator.py): working cost calculation for bedrock passthrough * feat(litellm_logging.py): consider allm_passthrough in cost tracking allows async calls (e.g. via proxy) to work * feat(bedrock/passthrough): working event stream decoding for bedrock passthrough calls + logging instrumentation for passthrough sdk calls (log on stream completion) Enables bedrock streaming cost calculation * feat(litellm_logging.py): support streaming passthrough cost tracking * feat(passthrough/main.py): working async streaming cost calculation Closes https://github.com/BerriAI/litellm/issues/11359 * feat(proxy_server.py): fix passthrough routing when llm router enabled * feat: further fixes * feat(bedrock/): working bedrock passthrough cost tracking (non-streaming) * feat(litellm_logging.py): working usage tracking for bedrock passthrough calls ensures tokens are logged * feat(bedrock/passthrough): add converse passthrough cost tracking support * feat(base_llm/passthrough): remove redundant function * refactor(litellm_logging.py): refactor function to be below 50 LOC * test: update test * test: remove redundant test |
||
|---|---|---|
| .. | ||
| caching | ||
| completion_extras/litellm_responses_transformation | ||
| enterprise/enterprise_callbacks | ||
| experimental_mcp_client | ||
| google_genai | ||
| integrations | ||
| litellm_core_utils | ||
| llms | ||
| passthrough | ||
| proxy | ||
| responses | ||
| router_strategy | ||
| router_utils | ||
| secret_managers | ||
| types | ||
| vector_stores | ||
| __init__.py | ||
| conftest.py | ||
| log.txt | ||
| readme.md | ||
| test_constants.py | ||
| test_cost_calculation_log_level.py | ||
| test_cost_calculator.py | ||
| test_logging.py | ||
| test_main.py | ||
| test_router.py | ||
| test_utils.py | ||
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py