Commit graph

91 commits

Author SHA1 Message Date
Marc Abramowitz
7b107ec165 Add more routes to test_generate_and_call_with_valid_key 2024-05-16 10:44:36 -07:00
Marc Abramowitz
98da3af032 Add more routes to test_generate_and_call_with_valid_key 2024-05-16 10:05:35 -07:00
Marc Abramowitz
a42fec803c Make test_generate_and_call_with_valid_key parametrized
This allows us to test the same code with different routes.
For example, it lets us test the `/engines/{model}/chat/completions`
route, which https://github.com/BerriAI/litellm/pull/3663 fixes.
2024-05-16 09:54:10 -07:00
Ishaan Jaff
dd20907eab test - auth on /reset/spend 2024-05-14 11:28:35 -07:00
Krrish Dholakia
29ef2261f9 fix(auth_checks.py): fix 'get_end_user_object'
await cache get
2024-05-09 13:05:56 -07:00
Ishaan Jaff
42257d40c5 (ci/cd) fix test_master_key_hashing 2024-04-20 14:50:34 -07:00
Ishaan Jaff
d55237442b (ci/cd) testing with team_id and /user/new 2024-04-20 11:09:34 -07:00
Ishaan Jaff
44207fd404 fix - view spend per user 2024-04-18 20:23:04 -07:00
Krrish Dholakia
013611a676 fix(_types.py): hash api key, if given
fixes https://github.com/BerriAI/litellm/issues/2114
2024-04-17 16:43:35 -07:00
Ishaan Jaff
539b5dd562 fix test_key_name_null 2024-04-16 21:37:31 -07:00
Ishaan Jaff
3ad0651b59 return correct response from user/new 2024-04-16 08:17:45 -07:00
Krrish Dholakia
ce9ea28e42 test(test_key_generate_prisma.py): add better unit testing for spend logs on proxy server 2024-04-09 17:58:18 -07:00
Krrish Dholakia
dab219d4d7 test(test_key_generate_prisma.py): fix check for raising error if key generate max budget > key upperbound 2024-04-09 13:07:57 -07:00
Ishaan Jaff
865cfd8c9f test new team request 2024-04-02 20:52:16 -07:00
Krrish Dholakia
029ee15951 perf(proxy_server.py): batch write spend logs
reduces prisma client errors, by batch writing spend logs - max 1k logs at a time
2024-04-02 18:46:55 -07:00
Ishaan Jaff
6534f887cc support all-proxy-models for teams 2024-04-02 16:04:09 -07:00
Ishaan Jaff
857a7c9135 support all-models-on-proxy 2024-04-02 15:52:54 -07:00
Ishaan Jaff
78edb29a29 (fix) support all-models alias on backend 2024-04-02 15:12:37 -07:00
Krrish Dholakia
610b811033 test(test_key_generate_prisma.py): fix test 2024-03-29 20:30:43 -07:00
Krrish Dholakia
9fc8b8a215 fix(proxy_server.py): increment cached global proxy spend object 2024-03-29 20:02:31 -07:00
Krrish Dholakia
49e2624240 fix(proxy_server.py): enforce end user budgets with 'litellm.max_end_user_budget' param 2024-03-29 17:14:40 -07:00
ishaan-jaff
37be2ba569 (fix) fix error message raised on passing invalid tokens 2024-03-15 14:50:34 -07:00
Krrish Dholakia
3232feb123 fix(proxy_server.py): fix key caching logic 2024-03-13 19:10:24 -07:00
Krrish Dholakia
84a32370b8 test(test_key_generate_prisma.py): fix tests 2024-03-11 15:24:42 -07:00
Krrish Dholakia
a4bb213610 test(test_key_generate_prisma.py): fix test 2024-03-11 14:59:11 -07:00
Krrish Dholakia
5b5d3b10df test(test_key_generate_prisma.py): fix test to only let admin delete a key 2024-03-11 14:18:01 -07:00
ishaan-jaff
928f7f8fe1 (ci/cd) fix test_proxy_load_test_db 2024-02-28 18:02:32 -08:00
Krrish Dholakia
e2faf313d3 fix(proxy_server.py): introduces a beta endpoint for admin to view global spend 2024-02-28 12:47:51 -08:00
Krrish Dholakia
56ee5b4762 test: testing fixes 2024-02-26 19:10:05 -08:00
Krrish Dholakia
64341b507f fix(proxy_server.py): don't cache request on key generate - misses the team related data 2024-02-26 18:48:55 -08:00
ishaan-jaff
80fd55a867 (feat) update non default values 2024-02-20 18:55:20 -08:00
ishaan-jaff
6a88746b62 (test) test_call_with_key_over_model_budget 2024-02-16 17:45:49 -08:00
Krrish Dholakia
866f978149 test(test_key_generate_prisma.py): fix test import 2024-02-10 16:16:12 -08:00
ishaan-jaff
3dc85a5263 (test) track_cost_ for end users 2024-02-06 15:25:51 -08:00
ishaan-jaff
a8bb3a4ada (test) test_upperbound_key_params 2024-02-05 22:39:36 -08:00
ishaan-jaff
7ebdab1367 (test) litellm-dashboard never allowed to /chat/completions 2024-02-05 16:11:33 -08:00
ishaan-jaff
8589f7f98b (test) setting user_role 2024-02-03 11:06:51 -08:00
ishaan-jaff
6f7b4c1faa (test) user_api_key_auth_cache 2024-02-02 19:57:55 -08:00
Krrish Dholakia
a7b89f0938 fix(test_key_generate_prisma.py): add longer delay to allow logs to update 2024-02-02 19:03:47 -08:00
ishaan-jaff
b7c475bcdb (test) state of litellm cache after create, delete 2024-02-02 18:49:20 -08:00
Krrish Dholakia
5a88a9c24e test: add sleep to key tests 2024-02-02 12:36:35 -08:00
Krrish Dholakia
4fdcb7edfe test(test_key_generate_prisma.py): add sleep time 2024-02-02 12:18:36 -08:00
Krrish Dholakia
699e78b0bd test: fix import 2024-02-02 11:16:51 -08:00
Krrish Dholakia
9c1e4e04e0 test: fix import 2024-02-02 10:23:31 -08:00
Krrish Dholakia
35df1413f8 test: testing fixes 2024-02-01 21:20:46 -08:00
ishaan-jaff
ef9065a87e (test) prisma /key/gen 2024-02-01 15:36:10 -08:00
ishaan-jaff
4f9a4ce5af (test) test _get_bearer_token 2024-02-01 15:33:03 -08:00
ishaan-jaff
f5891bcf72 (test) key_gen 2024-02-01 15:27:00 -08:00
ishaan-jaff
4c29f74efb (test) test_user_api_key_auth_without_master_key 2024-02-01 14:51:26 -08:00
ishaan-jaff
db255cd27c (fix) test_key_name_null 2024-02-01 14:45:19 -08:00