Ishaan Jaff
8a9bb51f4e
fix schema.prisma change
2024-10-09 15:25:27 +05:30
Ishaan Jaff
1fd437e263
(feat proxy) [beta] add support for organization role based access controls ( #6112 )
...
* track LiteLLM_OrganizationMembership
* add add_internal_user_to_organization
* add org membership to schema
* read organization membership when reading user info in auth checks
* add check for valid organization_id
* add test for test_create_new_user_in_organization
* test test_create_new_user_in_organization
* add new ADMIN role
* add test for org admins creating teams
* add test for test_org_admin_create_user_permissions
* test_org_admin_create_user_team_wrong_org_permissions
* test_org_admin_create_user_team_wrong_org_permissions
* fix organization_role_based_access_check
* fix getting user members
* fix TeamBase
* fix types used for use role
* fix type checks
* sync prisma schema
* docs - organization admins
* fix use organization_endpoints for /organization management
* add types for org member endpoints
* fix role name for org admin
* add type for member add response
* add organization/member_add
* add error handling for adding members to an org
* add nice doc string for oranization/member_add
* fix test_create_new_user_in_organization
* linting fix
* use simple route changes
* fix types
* add organization member roles
* add org admin auth checks
* add auth checks for orgs
* test for creating teams as org admin
* simplify org id usage
* fix typo
* test test_org_admin_create_user_team_wrong_org_permissions
* fix type check issue
* code quality fix
* fix schema.prisma
2024-10-09 15:18:18 +05:30
Ishaan Jaff
391b107909
[Feat UI sso] store 'provider' in user metadata ( #5856 )
...
* store sso provider in user metadata
* store user metadata
* store user auth_provider in user metadata
* add "metadata" for LiteLLM_UserTable
* fix sso test
2024-09-23 17:49:36 -07:00
Krrish Dholakia
dad3964207
build(schema.prisma): add column 'blocked' for litellm keys
...
enables blocking/unblocking litellm keys
2024-09-20 19:40:45 -07:00
Krish Dholakia
c76d2c6ade
Refactor 'check_view_exists' logic ( #5659 )
...
* fix(proxy/utils.py): comment out auto-upsert logic in check_view_exists
Prevents proxy from failing on startup due to faulty logic
* fix(db/migration_scripts/create_views.py): fix 'DailyTagSpend' quotation on check
* fix(create_views.py): mongly global spend time period should be 30d not 20d
* fix(schema.prisma): index on startTime and endUser for efficient UI querying
2024-09-12 13:39:50 -07:00
Ishaan Jaff
a44596a067
fix created_at and updated_at not existing error
2024-08-26 21:04:39 -07:00
Ishaan Jaff
5745f3d6cc
fix schema
2024-08-26 17:27:06 -07:00
Ishaan Jaff
fb150f7ce5
update schema
2024-08-26 16:52:19 -07:00
Ishaan Jaff
78eb5164df
fix DB accept null values for api_base, user, etc
2024-07-23 16:33:04 -07:00
Ishaan Jaff
b99ffcf8ae
SpendLogsPayload- track user ip
2024-07-08 10:16: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
Krrish Dholakia
def648ed3f
fix(proxy_server.py): allow passing in a list of team members
...
allows batch adding members to a team by passing in a list. fixes concurrency issue caused by calling team/member_add in parallel
2024-06-08 19:03:45 -07:00
Ishaan Jaff
9c3c42fa4b
feat - support litellm_changed_by
2024-06-08 16:02:18 -07:00
Ishaan Jaff
5bd658493f
feat - working audit logs for create, update delete team
2024-06-05 17:50:27 -07:00
Ishaan Jaff
970c3dfdc7
v0 audit logs
2024-06-05 16:19:38 -07:00
Krrish Dholakia
86b66c13a4
feat(proxy_server.py): allow admin to invite users via invite link
...
Closes https://github.com/BerriAI/litellm/issues/3863
2024-05-27 20:32:25 -07:00
Krish Dholakia
5a3aca10ce
Merge pull request #3789 from BerriAI/litellm_ttft_ui
...
feat(schema.prisma): store model id + model group as part of spend logs allows precise model metrics
2024-05-22 18:22:39 -07:00
Krrish Dholakia
3c0e9cb48e
feat(schema.prisma): store model id + model group as part of spend logs
...
allows precise model metrics
2024-05-22 17:29:44 -07:00
Ishaan Jaff
50461eb22c
feat - create budgets when team/member_add
2024-05-22 17:16:19 -07:00
Krrish Dholakia
9f518030b9
build(schema.prisma): add completion_start_time to spend logs
...
enables time to first token tracking for models
2024-05-22 16:43:08 -07:00
Krrish Dholakia
db666b01e5
feat(proxy_server.py): add CRUD endpoints for 'end_user' management
...
allow admin to specify region + default models for end users
2024-05-08 18:50:36 -07:00
Ishaan Jaff
f2849d0641
fix - track litellm_model_name in LiteLLM_ErrorLogs
2024-04-30 17:31:40 -07:00
Ishaan Jaff
4b8fda4ac4
log startTime and EndTime for exceptions
2024-04-30 13:34:14 -07:00
Ishaan Jaff
ad5fddef15
fix log model_group
2024-04-30 13:11:09 -07:00
Ishaan Jaff
ee2a2ce559
fix - log api_base in errors
2024-04-30 13:02:42 -07:00
Ishaan Jaff
c7f979e0fe
fix schema error logs
2024-04-30 12:31:19 -07:00
Ishaan Jaff
d6f7fa7f4e
v0 prisma schema
2024-04-30 11:42:17 -07:00
Krrish Dholakia
6c1444bfaa
fix(proxy_server.py): allow mapping a user to an org
2024-04-08 20:45:11 -07:00
Krrish Dholakia
11186d6ab4
build(schema.prisma): add user alias to prisma schema
2024-04-05 17:06:30 -07:00
Krrish Dholakia
5fb46cf32e
build(schema.prisma): add proxy model table to prisma schema
2024-04-03 20:17:38 -07:00
Ishaan Jaff
2b0feab16b
(fix) prisma - use original prisma client py generator
2024-03-28 12:25:28 -07:00
Ishaan Jaff
e44594d9da
(fix) prisma remove json protocol
2024-03-28 12:06:57 -07:00
Krrish Dholakia
bec093675c
build(schema.prisma): update schema to enable team blocking
2024-03-26 17:03:32 -07:00
Krrish Dholakia
d57995a73d
build(schema.prisma): use jsonProtocol to fix db connection issues
...
https://github.com/prisma/prisma/discussions/19978
2024-03-21 18:01:45 -07:00
Krrish Dholakia
26e783ab59
build: fix field name
2024-03-16 14:15:01 -07:00
Krrish Dholakia
ef0002f31c
fix(proxy_server.py): write blocked user list to a db table
...
lets this persist across workers
2024-03-16 12:26:29 -07:00
Krrish Dholakia
fc16b6650e
build(schema.prisma): add support for team-based model aliases
2024-03-06 18:55:44 -08:00
Krish Dholakia
530b454ff4
Merge branch 'main' into litellm_slack_budget_alerting
2024-03-02 19:13:57 -08:00
Krrish Dholakia
ac085a4643
fix(proxy_server.py): actual implementation of slack soft budget alerting
2024-03-02 18:34:18 -08:00
Krish Dholakia
eaccbf26b7
Merge branch 'main' into litellm_organization_table
2024-03-02 16:09:28 -08:00
Krrish Dholakia
8d22ed762e
fix(proxy_server.py): enable admin to create new budget if none set for org
2024-03-02 14:38:42 -08:00
ishaan-jaff
b042b5dc3b
(feat) set soft_budgets on keys
2024-03-02 12:25:40 -08:00
Krrish Dholakia
8a249b5fe9
build(schema.prisma): update schema with new orgs and budget table
2024-03-02 12:18:31 -08:00
Krrish Dholakia
6fb19c5d42
test(test_organizations.py): add testing for /organization/new
endpoint
2024-03-02 12:13:54 -08:00
Ishaan Jaff
38201ac7e3
Merge pull request #2301 from BerriAI/litellm_log_api_base_spend_logs
...
[FEAT] log api_base in spend logs
2024-03-02 12:08:16 -08:00
ishaan-jaff
0418ba5fc3
(feat) log api_base in spend logs
2024-03-02 12:02:06 -08:00
Krrish Dholakia
5feea04831
build: update schema.prisma
2024-03-02 11:59:17 -08:00
Krrish Dholakia
2602102ce6
feat(proxy_server.py): enable /organizations/new
endpoint
...
allows admins to create organizations which can own teams
2024-03-02 11:55:16 -08:00
ishaan-jaff
5a14a7afb3
(fix) prisma schema
2024-02-29 19:21:57 -08:00
Krrish Dholakia
846757e343
fix: show all teams user is a part of in user_info
2024-02-21 13:29:42 -08:00