Commit graph

133 commits

Author SHA1 Message Date
Krrish Dholakia
ff373663a3 fix: fix tests 2024-08-07 15:02:04 -07:00
Ishaan Jaff
0bf4554b80 fix test cache_key 2024-08-05 21:09:36 -07:00
Ishaan Jaff
5425861a54 fix cache_key check 2024-08-05 21:04:25 -07:00
Krrish Dholakia
e9df81ac19 test(test_key_generate_prisma.py): cleanup test 2024-08-05 20:29:53 -07:00
Krrish Dholakia
5c6dcd6029 test: improve debugging for test 2024-08-05 19:41:08 -07:00
Krrish Dholakia
6974b45c75 test: fix testing 2024-07-31 11:50:03 -07:00
Krrish Dholakia
e7f8ee2aba fix(test_key_generate_prisma.py): pass user_api_key_dict to test call 2024-07-17 08:29:21 -07:00
Ishaan Jaff
824256c50b test_custom_api_key_header_name 2024-07-16 16:37:43 -07:00
Ishaan Jaff
56b69eba18 test updating user role 2024-07-13 13:13:40 -07:00
Ishaan Jaff
7918f41aca test expired key raises correct exception 2024-07-12 18:45:01 -07:00
Ishaan Jaff
e9b14a56d2 test /threads endpoint 2024-07-09 12:17:42 -07:00
Ishaan Jaff
2cc70ddfd7 test type of budget errors 2024-07-08 12:52:40 -07:00
Ishaan Jaff
fff928b10b fix testing spend_tracking 2024-06-21 16:52:42 -07:00
Ishaan Jaff
f2677620fd test_call_with_end_user_over_budget 2024-06-20 21:08:06 -07:00
Ishaan Jaff
1db25d5b6a fix test_call_with_end_user_over_budget 2024-06-20 19:54:34 -07:00
Ishaan Jaff
76145a94fb test - key test_call_with_key_over_budget_no_cache 2024-06-20 17:30:03 -07:00
Ishaan Jaff
b718e7ec79 fix- refactor proxy place internal user endpoints in sep file 2024-06-15 16:39:06 -07:00
Ishaan Jaff
0f8237e263 fix - refactor key endpoints 2024-06-15 14:13:32 -07:00
Ishaan Jaff
349724a630 use directories for importing new endpoints 2024-06-15 13:35:21 -07:00
Ishaan Jaff
b4057dc022 refactor spend endpoints 2024-06-15 12:17:33 -07:00
Ishaan Jaff
f2570fdf00 feat - refactor team endpoints 2024-06-15 11:40:36 -07:00
Ishaan Jaff
94aa6ec543 test fix _get_bearer_token 2024-06-15 10:51:44 -07:00
Ishaan Jaff
5cb8c0557e test fix key gen prisma 2024-06-15 10:49:14 -07:00
Ishaan Jaff
6add69a819 fix - update team 2024-06-13 17:34:17 -07:00
Ishaan Jaff
6d2134ad2a
Merge pull request #4138 from BerriAI/litellm_log_management_endpoint_logs_otel
[FEAT]  log management endpoint logs to otel
2024-06-11 19:00:13 -07:00
Ishaan Jaff
fba7d2e623 fix team endpoints 2024-06-11 18:10:20 -07:00
Krrish Dholakia
c27ae34a39 fix(proxy_server.py): use consistent 400-status code error code for exceeded budget errors
standardizes error code for budget exceeded errors to status code 400
2024-06-11 16:10:58 -07:00
Krish Dholakia
55a20c7cce
Merge pull request #4084 from BerriAI/litellm_batch_add_team_members
fix(proxy_server.py): allow passing in a list of team members
2024-06-10 20:26:35 -07:00
Ishaan Jaff
a27f7e2817 feat - log exceptions to OTEL 2024-06-10 12:34:18 -07:00
Krrish Dholakia
d066e0e152 fix(proxy/_types.py): fix validation check 2024-06-08 22:56:56 -07:00
Ishaan Jaff
73d66e94c5 test - enforce params 2024-06-06 09:22:12 -07:00
Ishaan Jaff
83aa9151af fix test 2024-05-31 12:49:38 -07:00
Ishaan Jaff
21831905ba fix test_generate_and_call_with_valid_key 2024-05-30 15:10:16 -07:00
Ishaan Jaff
a4b6a959d8 fix literal usage 2024-05-30 14:28:53 -07:00
Ishaan Jaff
6166381579 fix migrate to LitellmUserRoles 2024-05-30 13:57:50 -07:00
Ishaan Jaff
6f063156be fix test_call_with_end_user_over_budget 2024-05-29 20:48:29 -07:00
Ishaan Jaff
3e9410ffd6 fix - test budget exceeded prisma 2024-05-29 20:31:55 -07:00
Ishaan Jaff
59cb306d47 fix - __team_info 2024-05-25 15:36:20 -07:00
Ishaan Jaff
e2d3c0c846 fix - updating team 2024-05-25 15:31:25 -07:00
Ishaan Jaff
22d8eaab93 test - new_team 2024-05-25 15:20:49 -07:00
Krrish Dholakia
84f3690453 test(test_key_generate_prisma.py): fix tests with unique team id 2024-05-23 08:46:44 -07:00
Marc Abramowitz
4194bafae0 Add nicer test ids when using pytest -v
Replace:

```
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route0] PASSED
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route10] PASSED
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route11] PASSED
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route12] PASSED
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route13] PASSED
test_key_generate_prisma.py::test_generate_and_call_with_valid_key[api_route14] PASSED
````

with:

```
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'audio_transcriptions', 'path': '/audio/transcriptions'}] PASSED
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'audio_transcriptions', 'path': '/v1/audio/transcriptions'}] PASSED
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/chat/completions'}] PASSED
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/engines/{model}/chat/completions'}] PASSED
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/openai/deployments/{model}/chat/completions'}] PASSED
litellm/tests/test_key_generate_prisma.py::test_generate_and_call_with_valid_key[{'route': 'chat_completion', 'path': '/v1/chat/completions'}] PASSED
```
2024-05-16 11:34:22 -07:00
Marc Abramowitz
cf71857354 Add more routes to test_generate_and_call_with_valid_key 2024-05-16 10:44:36 -07:00
Marc Abramowitz
dc52c83b88 Add more routes to test_generate_and_call_with_valid_key 2024-05-16 10:05:35 -07:00
Marc Abramowitz
d5b2e8e7e8 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
ca41e6590e test - auth on /reset/spend 2024-05-14 11:28:35 -07:00
Krrish Dholakia
e3f25a4a1f fix(auth_checks.py): fix 'get_end_user_object'
await cache get
2024-05-09 13:05:56 -07:00
Ishaan Jaff
a909af3fc0 (ci/cd) fix test_master_key_hashing 2024-04-20 14:50:34 -07:00
Ishaan Jaff
7ebf2ca4d9 (ci/cd) testing with team_id and /user/new 2024-04-20 11:09:34 -07:00
Ishaan Jaff
5b55900d8e fix - view spend per user 2024-04-18 20:23:04 -07:00