forked from phoenix/litellm-mirror
LiteLLM Minor Fixes & Improvements (11/12/2024) (#6705)
* fix(caching): convert arg to equivalent kwargs in llm caching handler prevent unexpected errors * fix(caching_handler.py): don't pass args to caching * fix(caching): remove all *args from caching.py * fix(caching): consistent function signatures + abc method * test(caching_unit_tests.py): add unit tests for llm caching ensures coverage for common caching scenarios across different implementations * refactor(litellm_logging.py): move to using cache key from hidden params instead of regenerating one * fix(router.py): drop redis password requirement * fix(proxy_server.py): fix faulty slack alerting check * fix(langfuse.py): avoid copying functions/thread lock objects in metadata fixes metadata copy error when parent otel span in metadata * test: update test
This commit is contained in:
parent
d39fd60801
commit
9160d80fa5
23 changed files with 525 additions and 204 deletions
|
@ -438,7 +438,7 @@ async def test_send_daily_reports_ignores_zero_values():
|
|||
slack_alerting.internal_usage_cache.async_batch_get_cache = AsyncMock(
|
||||
return_value=[None, 0, 10, 0, 0, None]
|
||||
)
|
||||
slack_alerting.internal_usage_cache.async_batch_set_cache = AsyncMock()
|
||||
slack_alerting.internal_usage_cache.async_set_cache_pipeline = AsyncMock()
|
||||
|
||||
router.get_model_info.side_effect = lambda x: {"litellm_params": {"model": x}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue