mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-17 18:17:52 +00:00
* fix(duration_parser.py): support `mo` unit * test(test_key_management_endpoints.py): add test confirming generate_key_helper_fn uses predictable budgets Closes https://github.com/BerriAI/litellm/issues/10800 * fix(anthropic/chat/transformation.py): add tool use cost tracking * fix(anthropic/): refactor how hosted tool usage tracking is done keep it separate from prompt / completion token details * fix(anthropic/): add web search tool cost tracking accurate cost tracking * feat(anthropic/chat/transformation.py): map openai 'web_search_options' param to anthropic hosted tool Allows calling anthropic web search in same format as openai * feat(anthropic/chat/transformation.py): support unified anthropic 'web_search_options' param Allows calling anthropic's web search tool in the openai format * feat(anthropic/chat/transformation.py): map openai 'search_context_size' to anthropic 'max_uses' param Translate search effort across both providers * fix: mark web_search_options param as supported by openai + azure * fix: fix linting error * fix: fix linting errors * fix: fix linting error * fix: check if usage hasattr * fix: pass web search options param
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/litellm
This folder can only run mock tests.