Commit graph

2690 commits

Author SHA1 Message Date
Ishaan Jaff
1b271aa95c fix swagger 2024-06-15 12:22:16 -07:00
Ishaan Jaff
b4057dc022 refactor spend endpoints 2024-06-15 12:17:33 -07:00
Krrish Dholakia
af88e55d46 fix(utils.py): move 'set_callbacks' to litellm_logging.py 2024-06-15 12:02:30 -07:00
Ishaan Jaff
23e5f36522 fix test 2024-06-15 11:46:15 -07:00
Ishaan Jaff
f2570fdf00 feat - refactor team endpoints 2024-06-15 11:40:36 -07:00
Krrish Dholakia
4f91205530 refactor(utils.py): refactor Logging to it's own class. Cut down utils.py to <10k lines.
Easier debugging

 Reference: https://github.com/BerriAI/litellm/issues/4206
2024-06-15 10:57:20 -07:00
Ishaan Jaff
35710be7c3 test - fixes 2024-06-15 10:40:02 -07:00
Ishaan Jaff
da3ae00bd6 fix - proxy refactor user_api_key_auth 2024-06-15 10:33:58 -07:00
Ishaan Jaff
18f36b38f0 ui - new build 2024-06-14 20:33:02 -07:00
Ishaan Jaff
4bfd46d0a6
Merge pull request #4209 from BerriAI/litellm_send_email_alerts_budget_exceeded
[Feat] send email alerts when budget exceeded
2024-06-14 20:23:19 -07:00
Ishaan Jaff
09b1d52ea1 fix send emails to team members 2024-06-14 20:11:16 -07:00
Krish Dholakia
3ef5d40b73
Merge pull request #4205 from BerriAI/litellm_alerting_metadata
fix(slack_alerting.py): allow new 'alerting_metadata' arg
2024-06-14 19:04:30 -07:00
Ishaan Jaff
eafcd5effa fix show email on config 2024-06-14 18:41:51 -07:00
Ishaan Jaff
52b54da354 fix -better debugging before sending emails 2024-06-14 17:38:33 -07:00
Ishaan Jaff
b31c084b53 add team_alias in alerting info 2024-06-14 17:05:59 -07:00
Ishaan Jaff
75d5609705 send team_alias on team budget alerts 2024-06-14 17:00:43 -07:00
Krrish Dholakia
e18002023a fix(slack_alerting.py): allow new 'alerting_metadata' arg
Allows user to pass in additional alerting metadata for debugging
2024-06-14 16:06:47 -07:00
Ishaan Jaff
6bd7e24fdd fix - team budget exceeded 2024-06-14 15:54:14 -07:00
Krrish Dholakia
2732ff5d56 fix(utils.py): return traceback on unmapped exception error
Fixes https://github.com/BerriAI/litellm/issues/4201
2024-06-14 15:08:01 -07:00
Krrish Dholakia
d8acda9f39 fix(proxy/utils.py): fix reset monthly budget
fix to reset at the same time each month (not at start of month)
2024-06-14 14:41:06 -07:00
Krish Dholakia
e61cd2e1e2
Merge branch 'main' into litellm_redis_cache_usage 2024-06-13 22:07:21 -07:00
Krish Dholakia
d499477f54
Merge pull request #4178 from BerriAI/litellm_http_handler
Retry on connection disconnect
2024-06-13 21:14:56 -07:00
Krrish Dholakia
acdd8f16ea build(ui): new build 2024-06-13 21:13:29 -07:00
Krrish Dholakia
8498600d42 feat(proxy/utils.py): allow budget duration in months
Closes https://github.com/BerriAI/litellm/issues/4042
2024-06-13 21:13:29 -07:00
Ishaan Jaff
17b8a31f0e update swagger for /team endpoints 2024-06-13 21:13:29 -07:00
Ishaan Jaff
62ff15fe6c fix /team/update 2024-06-13 21:13:29 -07:00
Ishaan Jaff
6d44c56e41 fix bug when updating team 2024-06-13 21:13:29 -07:00
Ishaan Jaff
8b7b2eec6b feat - add remaining budget for key on prometheus 2024-06-13 21:13:29 -07:00
Ishaan Jaff
330df10907 feat - add remaining team budget gauge 2024-06-13 21:13:29 -07:00
Ishaan Jaff
1a9ab1d66a fix - clean up swagger spend endpoints 2024-06-13 21:13:29 -07:00
Ishaan Jaff
a166db1e73 fix config 2024-06-13 21:13:29 -07:00
Krrish Dholakia
11555e56ed build(ui): new build 2024-06-13 20:55:50 -07:00
Krrish Dholakia
b72d09689e feat(proxy/utils.py): allow budget duration in months
Closes https://github.com/BerriAI/litellm/issues/4042
2024-06-13 20:55:50 -07:00
Ishaan Jaff
b986aa2846 update swagger for /team endpoints 2024-06-13 20:55:50 -07:00
Ishaan Jaff
b4db497e23 fix /team/update 2024-06-13 20:55:50 -07:00
Ishaan Jaff
8f77cfc013 fix bug when updating team 2024-06-13 20:55:49 -07:00
Ishaan Jaff
fd3d764a3f feat - add remaining budget for key on prometheus 2024-06-13 20:55:49 -07:00
Ishaan Jaff
95cc2484ed feat - add remaining team budget gauge 2024-06-13 20:55:49 -07:00
Ishaan Jaff
21ed23296f fix - clean up swagger spend endpoints 2024-06-13 20:55:49 -07:00
Krrish Dholakia
e93727b585 test(test_router_debug_logs.py): fix test 2024-06-13 20:37:37 -07:00
Krrish Dholakia
345094a49d fix(utils.py): check if model info is for model with correct provider
Fixes issue where incorrect pricing was used for custom llm provider
2024-06-13 15:54:24 -07:00
Krrish Dholakia
46d57526c4 fix(http_handler.py): add retry logic on httpx.remoteprotocolerror 2024-06-13 14:05:29 -07:00
Ishaan Jaff
ec110976b8 fix config 2024-06-13 11:53:04 -07:00
Ishaan Jaff
eeb0e7d2be fix "/global/spend/report", 2024-06-13 08:51:49 -07:00
Krish Dholakia
05e21441a6
Merge branch 'main' into litellm_vertex_completion_httpx 2024-06-12 21:19:22 -07:00
Ishaan Jaff
848d29fae7 ui - new build 2024-06-12 20:34:55 -07:00
Ishaan Jaff
8fd162136f feat - litellm_model_cost_map 2024-06-12 20:03:46 -07:00
Ishaan Jaff
2a32817963 ui - new build 2024-06-12 19:47:58 -07:00
Ishaan Jaff
4fc16a6bec
Merge pull request #4164 from BerriAI/litellm_fix_error_inernal_users_sso_saw
[Admin UI] Fix error Internal Users see when using SSO
2024-06-12 19:45:10 -07:00
Ishaan Jaff
8987f16507 fix - sso pass correct role for user 2024-06-12 19:37:58 -07:00