Ishaan Jaff
72f9c92a13
add global/spend/provider
2024-09-05 18:20:13 -07:00
Ishaan Jaff
4e5d4c1583
allow internal user to view global/spend/models
2024-09-05 18:20:13 -07:00
Ishaan Jaff
372fcb6e4c
allow internal user to view their own spend
2024-09-05 18:20:13 -07:00
Ishaan Jaff
b3ca358c39
add usage endpoints for internal user
2024-09-05 18:20:13 -07:00
Ishaan Jaff
0fc7d81bf4
show /spend/logs for internal users
2024-09-05 18:20:13 -07:00
Ishaan Jaff
191dfc7e11
fix create view - MonthlyGlobalSpendPerUserPerKey
2024-09-05 18:20:13 -07:00
Ishaan Jaff
29c86ebf02
use helper functions per endpoint
2024-09-05 18:20:13 -07:00
Ishaan Jaff
9afa39630c
add /spend/tags as allowed route for internal user
2024-09-05 18:20:13 -07:00
Ishaan Jaff
16a9f41682
fix allow internal user and internal viewer to view usage
2024-09-05 18:20:13 -07:00
Krish Dholakia
f584021f7c
LiteLLM Minor Fixes and Improvements ( #5537 )
...
* fix(vertex_ai): Fixes issue where multimodal message without text was failing vertex calls
Fixes https://github.com/BerriAI/litellm/issues/5515
* fix(azure.py): move to using httphandler for oidc token calls
Fixes issue where ssl certificates weren't being picked up as expected
Closes https://github.com/BerriAI/litellm/issues/5522
* feat: Allows admin to set a default_max_internal_user_budget in config, and allow setting more specific values as env vars
* fix(proxy_server.py): fix read for max_internal_user_budget
* build(model_prices_and_context_window.json): add regional gpt-4o-2024-08-06 pricing
Closes https://github.com/BerriAI/litellm/issues/5540
* test: skip re-test
2024-09-05 18:03:34 -07:00
Krish Dholakia
7ced9c8c0e
Update lago.py to accomodate API change ( #5495 ) ( #5543 )
...
* Update lago.py to accomodate API change (#5495 )
external_customer_id is deprecated.
external_subscription_id is the replacement.
* fix(lago.py): fixes
\
---------
Co-authored-by: Raymond Weitekamp <19483938+rawwerks@users.noreply.github.com>
2024-09-05 17:27:40 -07:00
Krish Dholakia
6cd8951f56
LiteLLM Merged PR's ( #5538 )
...
* Fix typo in #5509 (#5532 )
* Reapply "(bedrock): Fix usage with Cloudflare AI Gateway, and proxies in gener…" (#5519 )
This reverts commit 995019c08a
.
* (bedrock): Fix obvious typo
* test: cleanup linting error
---------
Co-authored-by: David Manouchehri <david.manouchehri@ai.moda>
2024-09-05 17:11:31 -07:00
Ishaan Jaff
d8ef8c133e
docs add video for key based logging
2024-09-05 17:10:12 -07:00
Ishaan Jaff
8e25ba8de1
ui new build
2024-09-05 17:05:39 -07:00
Ishaan Jaff
fa9a1f4dbc
Merge pull request #5536 from BerriAI/litellm_allow_internal_user_view_usage
...
[Fix-Proxy] allow internal user and internal viewer to view usage
2024-09-05 16:46:12 -07:00
Ishaan Jaff
f42a0528db
Merge branch 'main' into litellm_allow_internal_user_view_usage
2024-09-05 16:46:06 -07:00
Ishaan Jaff
795db8672a
fix log /audio to langfuse
2024-09-05 16:26:37 -07:00
Ishaan Jaff
c446ef37b1
Merge pull request #5541 from BerriAI/litellm_fix_expired_keys
...
[UI] Show when a virtual key expires
2024-09-05 16:11:09 -07:00
Ishaan Jaff
304a31ec8c
ui show when key expires
2024-09-05 15:57:52 -07:00
Ishaan Jaff
18f019f87d
move prisma test to correct location
2024-09-05 15:50:39 -07:00
Ishaan Jaff
53794f773e
fix typing error on test
2024-09-05 15:48:41 -07:00
Ishaan Jaff
b27ef1ca5b
run ci/cd on main
2024-09-05 15:48:41 -07:00
Ishaan Jaff
ea716d311d
fix typing error on test
2024-09-05 15:47:18 -07:00
Ishaan Jaff
edc51f45ac
add error message on test
2024-09-05 15:46:13 -07:00
Ishaan Jaff
30137b0b72
run ci - cd again
2024-09-05 15:42:40 -07:00
Ishaan Jaff
9eb35e47ee
run ci/cd on main
2024-09-05 15:39:30 -07:00
Ishaan Jaff
05e02fbe76
run ci/cd again
2024-09-05 15:38:49 -07:00
Ishaan Jaff
004a71b8dc
use requirements txt
2024-09-05 15:34:17 -07:00
Ishaan Jaff
c40f6f0437
fix on /user/info show all keys - even expired ones
2024-09-05 15:31:41 -07:00
Ishaan Jaff
0426aa5642
run test again
2024-09-05 15:26:48 -07:00
Ishaan Jaff
42b2566906
run ci/cd agaiin
2024-09-05 15:26:12 -07:00
Ishaan Jaff
3d9049df6d
move folder key gen prisma is in
2024-09-05 15:24:00 -07:00
Ishaan Jaff
5b1d207cf4
run test again
2024-09-05 15:20:21 -07:00
Krrish Dholakia
c154c5e230
docs(configs.md): update to clarify you can use os.environ/ for any config value
2024-09-05 15:19:12 -07:00
Ishaan Jaff
89649282ee
run again
2024-09-05 15:17:17 -07:00
Ishaan Jaff
e551680fce
add step for ui testing
2024-09-05 15:15:41 -07:00
Ishaan Jaff
9aff6a4c9d
add test for ui usage endpoints
2024-09-05 15:06:53 -07:00
Ishaan Jaff
a30917311e
fix import
2024-09-05 14:42:56 -07:00
Krrish Dholakia
8ca7c2c9af
test(test_function_call_parsing.py): handle anthropic internal server error
2024-09-05 14:37:53 -07:00
OrangeWolf
542b333c95
Update utils.py ( #5530 )
...
fix KeyError (cause by typo?)
2024-09-05 14:37:53 -07:00
Ishaan Jaff
94d6e800ee
add test for internal vs admin user
2024-09-05 13:30:51 -07:00
Ishaan Jaff
48cf7ac52f
fix tests on viewing spend logs
2024-09-05 13:17:03 -07:00
Ishaan Jaff
f9a3e343bb
add ui testing folder
2024-09-05 13:13:58 -07:00
Ishaan Jaff
8d9a724400
fix test_call_with_key_over_budget
2024-09-05 13:08:13 -07:00
Ishaan Jaff
8344bbd3af
ui add a check for isAdminOrAdminViewer
2024-09-05 13:04:20 -07:00
Ishaan Jaff
491e50f381
fix allow internal user to view their own usage
2024-09-05 12:53:44 -07:00
Ishaan Jaff
fe55563233
fix /global/spend/provider
2024-09-05 12:48:58 -07:00
Ishaan Jaff
2ba2de5e6d
add global/spend/provider
2024-09-05 12:44:44 -07:00
Ishaan Jaff
936e486c95
fix import
2024-09-05 12:40:45 -07:00
Krrish Dholakia
08976370a3
docs(configs.md): update to clarify you can use os.environ/ for any config value
2024-09-05 12:40:31 -07:00