Commit graph

2552 commits

Author SHA1 Message Date
Ishaan Jaff
4e9f16f5ac Merge pull request #4254 from BerriAI/litellm_refactor_logfire
[Fix] Refactor Logfire to use LiteLLM OTEL Class
2024-06-17 19:49:36 -07:00
Krrish Dholakia
986b5ed9c8 fix(_logging.py): add loglevel and timestamp to json logs
Fixes https://github.com/BerriAI/litellm/issues/4248
2024-06-17 18:57:20 -07:00
Krrish Dholakia
ec56ae7c9a fix(proxy/_types.py): allow internal user to access sso routes 2024-06-17 18:34:37 -07:00
Ishaan Jaff
464a6e6256 fix - refactor logfire 2024-06-17 17:21:43 -07:00
John HU
ec5e26a848 fix: strip llm credential before returning 2024-06-17 12:14:40 -07:00
Krrish Dholakia
fa6ddcde3c fix(litellm_logging.py): fix lago callback logic 2024-06-17 09:10:19 -07:00
Ishaan Jaff
b7c5700b54 fix- refactor proxy place internal user endpoints in sep file 2024-06-15 16:39:06 -07:00
Ishaan Jaff
a9649c0860 Merge pull request #4217 from BerriAI/litellm_refactor_proxy_server
[Refactor-Proxy] Make proxy_server.py < 10K lines (move management, key, endpoints to their own files)
2024-06-15 16:27:31 -07:00
Ishaan Jaff
d78595fe1e doc - add comment explaining user_api_key_auth file 2024-06-15 16:08:17 -07:00
Ishaan Jaff
2aa18b665f Merge pull request #4220 from BerriAI/litellm_admin_ui_sign_up_flow
fix - non sso ui sign up flow
2024-06-15 15:55:21 -07:00
Ishaan Jaff
f7c28d9ed1 ui - new build 2024-06-15 15:53:46 -07:00
Ishaan Jaff
f3a7c52f60 fix - non sso ui sign up flow 2024-06-15 15:26:44 -07:00
Krish Dholakia
fa2d8bc794 Merge pull request #4216 from BerriAI/litellm_refactor_logging
refactor(utils.py): Cut down utils.py to <10k lines.
2024-06-15 15:19:42 -07:00
Ishaan Jaff
abb544190a fix - refactor key endpoints 2024-06-15 14:13:32 -07:00
Ishaan Jaff
9b655c9ef7 use directories for importing new endpoints 2024-06-15 13:35:21 -07:00
Ishaan Jaff
0f8dbe5ed4 refactor health endpoints 2024-06-15 12:39:04 -07:00
Ishaan Jaff
2dcc484e5d fix swagger 2024-06-15 12:22:16 -07:00
Ishaan Jaff
b1599c3f40 refactor spend endpoints 2024-06-15 12:17:33 -07:00
Krrish Dholakia
019533d815 fix(utils.py): move 'set_callbacks' to litellm_logging.py 2024-06-15 12:02:30 -07:00
Ishaan Jaff
749af8278b fix test 2024-06-15 11:46:15 -07:00
Ishaan Jaff
897f6bc7ea feat - refactor team endpoints 2024-06-15 11:40:36 -07:00
Krrish Dholakia
9d7f5d503c 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
ed273ef4f0 test - fixes 2024-06-15 10:40:02 -07:00
Ishaan Jaff
4bc2bfb176 fix - proxy refactor user_api_key_auth 2024-06-15 10:33:58 -07:00
Ishaan Jaff
91eafc8827 ui - new build 2024-06-14 20:33:02 -07:00
Ishaan Jaff
8988b2e909 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
f16a9a6d92 fix send emails to team members 2024-06-14 20:11:16 -07:00
Krish Dholakia
9e280ba235 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
b075e667ad fix show email on config 2024-06-14 18:41:51 -07:00
Ishaan Jaff
614f41d12e fix -better debugging before sending emails 2024-06-14 17:38:33 -07:00
Ishaan Jaff
8013e0dd78 add team_alias in alerting info 2024-06-14 17:05:59 -07:00
Ishaan Jaff
3c56bfbc5a send team_alias on team budget alerts 2024-06-14 17:00:43 -07:00
Krrish Dholakia
1cce99300f 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
9f22b470be fix - team budget exceeded 2024-06-14 15:54:14 -07:00
Krrish Dholakia
29e06f4e72 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
af2aeb595d 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
c373f104cc Merge branch 'main' into litellm_redis_cache_usage 2024-06-13 22:07:21 -07:00
Krish Dholakia
f3fd84908b Merge pull request #4178 from BerriAI/litellm_http_handler
Retry on connection disconnect
2024-06-13 21:14:56 -07:00
Krrish Dholakia
5fd3ef671e build(ui): new build 2024-06-13 21:13:29 -07:00
Krrish Dholakia
46a5fb1747 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
e581f33a17 update swagger for /team endpoints 2024-06-13 21:13:29 -07:00
Ishaan Jaff
704c678689 fix /team/update 2024-06-13 21:13:29 -07:00
Ishaan Jaff
7ece6cf911 fix bug when updating team 2024-06-13 21:13:29 -07:00
Ishaan Jaff
78d0674e8d feat - add remaining budget for key on prometheus 2024-06-13 21:13:29 -07:00
Ishaan Jaff
09dff7b3de feat - add remaining team budget gauge 2024-06-13 21:13:29 -07:00
Ishaan Jaff
7a51d28c88 fix - clean up swagger spend endpoints 2024-06-13 21:13:29 -07:00
Ishaan Jaff
74c737f0d8 fix config 2024-06-13 21:13:29 -07:00
Krrish Dholakia
bb3167ff15 build(ui): new build 2024-06-13 20:55:50 -07:00
Krrish Dholakia
ced41130e4 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
31e89bf48b update swagger for /team endpoints 2024-06-13 20:55:50 -07:00