litellm-mirror/litellm/proxy/hooks
Krish Dholakia 522da384b6
Litellm dev 12 20 2024 p3 (#7339)
* fix(proxy_track_cost_callback.py): log to db if only end user param given

* fix: allows for jwt-auth based end user id spend tracking to work

* fix(utils.py): fix 'get_end_user_id_for_cost_tracking' to use 'user_api_key_end_user_id'

more stable - works with jwt-auth based end user tracking as well

* test(test_jwt.py): add e2e unit test to confirm end user cost tracking works for spend logs

* test: update test to use end_user api key hash param

* fix(langfuse.py): support end user cost tracking via jwt auth + langfuse

logs end user to langfuse if decoded from jwt token

* fix: fix linting errors

* test: fix test

* test: fix test

* fix: fix end user id extraction

* fix: run test earlier
2024-12-20 21:13:32 -08:00
..
__init__.py fix(proxy_server.py): enable pre+post-call hooks and max parallel request limits 2023-12-08 17:11:30 -08:00
azure_content_safety.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
batch_redis_get.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
cache_control_check.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
dynamic_rate_limiter.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
example_presidio_ad_hoc_recognizer.json fix(presidio_pii_masking.py): enable user to pass ad hoc recognizer for pii masking 2024-02-20 16:01:15 -08:00
key_management_event_hooks.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
max_budget_limiter.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
model_max_budget_limiter.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
parallel_request_limiter.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
prompt_injection_detection.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
proxy_failure_handler.py (feat) Allow disabling ErrorLogs written to the DB (#6940) 2024-11-27 19:34:51 -08:00
proxy_track_cost_callback.py Litellm dev 12 20 2024 p3 (#7339) 2024-12-20 21:13:32 -08:00