Commit graph

470 commits

Author SHA1 Message Date
Krrish Dholakia
c2813594ea fix(proxy/utils.py): fix isoformat to string logic 2024-01-18 09:32:30 -08:00
Krrish Dholakia
1365e9d3ae fix(proxy/utils.py): prisma client fix get data to handle list return 2024-01-18 07:49:13 -08:00
Krish Dholakia
05682f6eb4 Merge pull request #1483 from BerriAI/litellm_model_access_groups_feature
feat(proxy_server.py): support model access groups
2024-01-17 18:16:53 -08:00
Krrish Dholakia
5242200243 feat(proxy_server.py): support model access groups 2024-01-17 15:45:31 -08:00
ishaan-jaff
32cc9b1559 (fix) prisma - non expiring keys 2024-01-17 12:56:26 -08:00
ishaan-jaff
dfef9c2986 (feat) improve Prisma Auth Error 2024-01-17 11:57:48 -08:00
ishaan-jaff
772547d625 (fix) proxy check expires time 2024-01-16 15:38:58 -08:00
ishaan-jaff
fc4b5387f1 Revert "Revert "(fix) proxy only import dynamo_db when it's being used""
This reverts commit 8cce2f28ca.
2024-01-15 16:57:36 -08:00
ishaan-jaff
becbe177e7 Revert "(fix) proxy only import dynamo_db when it's being used"
This reverts commit 8d3ca785ae.
2024-01-15 14:20:29 -08:00
ishaan-jaff
1b696c4129 (fix) proxy only import dynamo_db when it's being used 2024-01-13 11:43:50 -08:00
Krrish Dholakia
61cbac6b4f fix(proxy_cli.py): only run prisma db push if prisma in environment 2024-01-13 19:44:12 +05:30
Krrish Dholakia
ae74c52a33 Merge branch 'litellm_dynamo_db_keys' 2024-01-13 18:38:43 +05:30
Krrish Dholakia
45b860d433 fix(proxy_server.py): have /user/info return user info + related user keys 2024-01-12 22:52:13 +05:30
Krrish Dholakia
135e4b6ac4 fix(dynamo_db.py): add cost tracking support for key + user 2024-01-11 23:56:41 +05:30
Krrish Dholakia
e08da07def build(config.yml): reintroduce mounting config.yaml 2024-01-10 18:03:57 +05:30
Krrish Dholakia
53f0169c39 fix: fix linting errors 2024-01-09 22:16:16 +05:30
Krrish Dholakia
00c258c165 feat(proxy_server.py): adds working dynamo db support for key gen 2024-01-09 18:23:34 +05:30
Krrish Dholakia
7f9808be56 fix(proxy_server.py): don't reconnect prisma if already connected 2024-01-09 11:38:42 +05:30
Krrish Dholakia
b89dac5b78 build(Dockerfile): fixes the build time setup 2024-01-06 16:41:37 +05:30
Krrish Dholakia
c51f012a56 fix(proxy/utils.py): increase http connection pool for prisma 2024-01-06 13:45:30 +05:30
ishaan-jaff
d5331b9f10 (ci/cd) temp fix - check if model_dump_json exists 2024-01-06 12:23:39 +05:30
ishaan-jaff
70ca7ce769 (ci/cd) run again 2024-01-06 11:57:31 +05:30
ishaan-jaff
973f418178 Revert "build(Dockerfile): move prisma build to dockerfile"
This reverts commit 2741835605.
2024-01-06 09:51:44 +05:30
ishaan-jaff
b518c5edd9 (ci/cd) add print_verbose for /key/generate 2024-01-05 22:38:46 +05:30
ishaan-jaff
7b7799ace7 (fix) revert 469ae0a 2024-01-05 22:06:39 +05:30
ishaan-jaff
e781eb39c5 (fix) prisma set DATABASE_URL in env 2024-01-05 20:57:27 +05:30
ishaan-jaff
530e689ae8 (fix) proxy - self.connect() for get_data() 2024-01-05 20:48:16 +05:30
Krrish Dholakia
04dfde3fe5 build(Dockerfile): move prisma build to dockerfile
Seems to solve - https://github.com/BerriAI/litellm/issues/1321
2024-01-05 19:03:41 +05:30
ishaan-jaff
9d4ce57801 (fix) re-connect prisma if not connected 2024-01-05 17:58:23 +05:30
ishaan-jaff
06ef89f65a (ci/cd) proxy print_verbose on failing insert_data 2024-01-05 17:28:27 +05:30
Krrish Dholakia
f3163d287c fix(proxy_server.py): fix prisma client connection error 2024-01-04 18:28:18 +05:30
Krrish Dholakia
5aecbced99 feat(proxy_server.py): abstract config update/writing and support persisting config in db
allows user to opt into writing to db (SAVE_CONFIG_TO_DB) and removes any api keys before sending to db

 https://github.com/BerriAI/litellm/issues/1322
2024-01-04 14:44:59 +05:30
Krrish Dholakia
e898f3e49c fix(proxy/utils.py): don't keep connecting to db if connection already established 2024-01-03 17:43:44 +05:30
Krrish Dholakia
c998de0cde fix(proxy_server.py): add support for setting master key via .env 2024-01-03 15:10:25 +05:30
Krrish Dholakia
c7688a56ed fix(proxy_server.py): add alerting for responses taking too long
https://github.com/BerriAI/litellm/issues/1298
2024-01-03 11:18:21 +05:30
Krrish Dholakia
4f240e1fac fix(proxy/utils.py): fix self.alerting null case
https://github.com/BerriAI/litellm/issues/1298#issuecomment-1874798056
2024-01-03 10:12:21 +05:30
Krrish Dholakia
901b343519 fix(proxy_server.py): support smtp email auth
previously was a hard resend package dependency. removed in favor of allowing any smtp server connection (including resend)
2024-01-02 22:22:19 +05:30
Krrish Dholakia
5f5a6eb7bc feat(proxy_server.py): add slack alerting to proxy server
add alerting for calls hanging, failing and db read/writes failing

https://github.com/BerriAI/litellm/issues/1298
2024-01-02 17:45:18 +05:30
Krrish Dholakia
dcfcf99d63 fix(proxy_server.py): check if user email in user db 2024-01-01 14:19:59 +05:30
Krrish Dholakia
79978c44ba refactor: add black formatting 2023-12-25 14:11:20 +05:30
Krrish Dholakia
abee400fb8 fix(proxy_server.py): accept keys with none duration 2023-12-25 13:46:24 +05:30
Krrish Dholakia
018405b956 fix(proxy/utils.py): return different exceptions if key is invalid vs. expired
https://github.com/BerriAI/litellm/issues/1230
2023-12-25 10:29:44 +05:30
Krrish Dholakia
a96bac14af fix(proxy_server.py): manage budget at user-level not key-level
https://github.com/BerriAI/litellm/issues/1220
2023-12-22 15:10:38 +05:30
Krrish Dholakia
aefaa157e5 feat(proxy_server.py): support max budget on proxy 2023-12-21 16:07:20 +05:30
Krrish Dholakia
fc935f0972 fix(proxy/utils.py): jsonify object before db writes 2023-12-21 13:03:14 +05:30
Krrish Dholakia
68c53256ab fix(proxy_server.py): setup depedencies on server startup 2023-12-16 11:56:11 -08:00
Krrish Dholakia
3fbeca134f fix(custom_logger.py): enable pre_call hooks to modify incoming data to proxy 2023-12-13 16:20:37 -08:00
Krrish Dholakia
2231601d5a fix(ollama.py): fix async completion calls for ollama 2023-12-13 13:10:25 -08:00
Krrish Dholakia
66e0c06476 fix(proxy/utils.py): fix db writes on retry 2023-12-11 21:14:12 -08:00
Krrish Dholakia
47d0884c0c test(test_custom_callback_unit.py): adding unit tests for custom callbacks + fixing related bugs 2023-12-11 11:44:09 -08:00