litellm-proxy-extras 0.1.15__tar.gz → 0.1.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of litellm-proxy-extras might be problematic. Click here for more details.
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/PKG-INFO +1 -1
- litellm_proxy_extras-0.1.17/litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql +17 -0
- litellm_proxy_extras-0.1.17/litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql +32 -0
- litellm_proxy_extras-0.1.17/litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql +3 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/schema.prisma +34 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/pyproject.toml +2 -2
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/LICENSE +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/README.md +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/__init__.py +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/_logging.py +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
- {litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: litellm-proxy-extras
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.17
|
|
4
4
|
Summary: Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package.
|
|
5
5
|
Author: BerriAI
|
|
6
6
|
Requires-Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "LiteLLM_MCPServerTable" (
|
|
3
|
+
"server_id" TEXT NOT NULL,
|
|
4
|
+
"alias" TEXT,
|
|
5
|
+
"description" TEXT,
|
|
6
|
+
"url" TEXT NOT NULL,
|
|
7
|
+
"transport" TEXT NOT NULL DEFAULT 'sse',
|
|
8
|
+
"spec_version" TEXT NOT NULL DEFAULT '2025-03-26',
|
|
9
|
+
"auth_type" TEXT,
|
|
10
|
+
"created_at" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP,
|
|
11
|
+
"created_by" TEXT,
|
|
12
|
+
"updated_at" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP,
|
|
13
|
+
"updated_by" TEXT,
|
|
14
|
+
|
|
15
|
+
CONSTRAINT "LiteLLM_MCPServerTable_pkey" PRIMARY KEY ("server_id")
|
|
16
|
+
);
|
|
17
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "LiteLLM_OrganizationTable" ADD COLUMN "object_permission_id" TEXT;
|
|
3
|
+
|
|
4
|
+
-- AlterTable
|
|
5
|
+
ALTER TABLE "LiteLLM_TeamTable" ADD COLUMN "object_permission_id" TEXT;
|
|
6
|
+
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "LiteLLM_UserTable" ADD COLUMN "object_permission_id" TEXT;
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "LiteLLM_VerificationToken" ADD COLUMN "object_permission_id" TEXT;
|
|
12
|
+
|
|
13
|
+
-- CreateTable
|
|
14
|
+
CREATE TABLE "LiteLLM_ObjectPermissionTable" (
|
|
15
|
+
"object_permission_id" TEXT NOT NULL,
|
|
16
|
+
"mcp_servers" TEXT[] DEFAULT ARRAY[]::TEXT[],
|
|
17
|
+
|
|
18
|
+
CONSTRAINT "LiteLLM_ObjectPermissionTable_pkey" PRIMARY KEY ("object_permission_id")
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- AddForeignKey
|
|
22
|
+
ALTER TABLE "LiteLLM_OrganizationTable" ADD CONSTRAINT "LiteLLM_OrganizationTable_object_permission_id_fkey" FOREIGN KEY ("object_permission_id") REFERENCES "LiteLLM_ObjectPermissionTable"("object_permission_id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
23
|
+
|
|
24
|
+
-- AddForeignKey
|
|
25
|
+
ALTER TABLE "LiteLLM_TeamTable" ADD CONSTRAINT "LiteLLM_TeamTable_object_permission_id_fkey" FOREIGN KEY ("object_permission_id") REFERENCES "LiteLLM_ObjectPermissionTable"("object_permission_id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
26
|
+
|
|
27
|
+
-- AddForeignKey
|
|
28
|
+
ALTER TABLE "LiteLLM_UserTable" ADD CONSTRAINT "LiteLLM_UserTable_object_permission_id_fkey" FOREIGN KEY ("object_permission_id") REFERENCES "LiteLLM_ObjectPermissionTable"("object_permission_id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
29
|
+
|
|
30
|
+
-- AddForeignKey
|
|
31
|
+
ALTER TABLE "LiteLLM_VerificationToken" ADD CONSTRAINT "LiteLLM_VerificationToken_object_permission_id_fkey" FOREIGN KEY ("object_permission_id") REFERENCES "LiteLLM_ObjectPermissionTable"("object_permission_id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
32
|
+
|
{litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/schema.prisma
RENAMED
|
@@ -61,6 +61,7 @@ model LiteLLM_OrganizationTable {
|
|
|
61
61
|
models String[]
|
|
62
62
|
spend Float @default(0.0)
|
|
63
63
|
model_spend Json @default("{}")
|
|
64
|
+
object_permission_id String?
|
|
64
65
|
created_at DateTime @default(now()) @map("created_at")
|
|
65
66
|
created_by String
|
|
66
67
|
updated_at DateTime @default(now()) @updatedAt @map("updated_at")
|
|
@@ -70,6 +71,7 @@ model LiteLLM_OrganizationTable {
|
|
|
70
71
|
users LiteLLM_UserTable[]
|
|
71
72
|
keys LiteLLM_VerificationToken[]
|
|
72
73
|
members LiteLLM_OrganizationMembership[] @relation("OrganizationToMembership")
|
|
74
|
+
object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
// Model info for teams, just has model aliases for now.
|
|
@@ -89,6 +91,7 @@ model LiteLLM_TeamTable {
|
|
|
89
91
|
team_id String @id @default(uuid())
|
|
90
92
|
team_alias String?
|
|
91
93
|
organization_id String?
|
|
94
|
+
object_permission_id String?
|
|
92
95
|
admins String[]
|
|
93
96
|
members String[]
|
|
94
97
|
members_with_roles Json @default("{}")
|
|
@@ -110,6 +113,7 @@ model LiteLLM_TeamTable {
|
|
|
110
113
|
model_id Int? @unique // id for LiteLLM_ModelTable -> stores team-level model aliases
|
|
111
114
|
litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])
|
|
112
115
|
litellm_model_table LiteLLM_ModelTable? @relation(fields: [model_id], references: [id])
|
|
116
|
+
object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
// Track spend, rate limit, budget Users
|
|
@@ -119,6 +123,7 @@ model LiteLLM_UserTable {
|
|
|
119
123
|
team_id String?
|
|
120
124
|
sso_user_id String? @unique
|
|
121
125
|
organization_id String?
|
|
126
|
+
object_permission_id String?
|
|
122
127
|
password String?
|
|
123
128
|
teams String[] @default([])
|
|
124
129
|
user_role String?
|
|
@@ -144,6 +149,32 @@ model LiteLLM_UserTable {
|
|
|
144
149
|
invitations_created LiteLLM_InvitationLink[] @relation("CreatedBy")
|
|
145
150
|
invitations_updated LiteLLM_InvitationLink[] @relation("UpdatedBy")
|
|
146
151
|
invitations_user LiteLLM_InvitationLink[] @relation("UserId")
|
|
152
|
+
object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
model LiteLLM_ObjectPermissionTable {
|
|
156
|
+
object_permission_id String @id @default(uuid())
|
|
157
|
+
mcp_servers String[] @default([])
|
|
158
|
+
|
|
159
|
+
teams LiteLLM_TeamTable[]
|
|
160
|
+
verification_tokens LiteLLM_VerificationToken[]
|
|
161
|
+
organizations LiteLLM_OrganizationTable[]
|
|
162
|
+
users LiteLLM_UserTable[]
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Holds the MCP server configuration
|
|
166
|
+
model LiteLLM_MCPServerTable {
|
|
167
|
+
server_id String @id @default(uuid())
|
|
168
|
+
alias String?
|
|
169
|
+
description String?
|
|
170
|
+
url String
|
|
171
|
+
transport String @default("sse")
|
|
172
|
+
spec_version String @default("2025-03-26")
|
|
173
|
+
auth_type String?
|
|
174
|
+
created_at DateTime? @default(now()) @map("created_at")
|
|
175
|
+
created_by String?
|
|
176
|
+
updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
|
|
177
|
+
updated_by String?
|
|
147
178
|
}
|
|
148
179
|
|
|
149
180
|
// Generate Tokens for Proxy
|
|
@@ -174,12 +205,14 @@ model LiteLLM_VerificationToken {
|
|
|
174
205
|
model_max_budget Json @default("{}")
|
|
175
206
|
budget_id String?
|
|
176
207
|
organization_id String?
|
|
208
|
+
object_permission_id String?
|
|
177
209
|
created_at DateTime? @default(now()) @map("created_at")
|
|
178
210
|
created_by String?
|
|
179
211
|
updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
|
|
180
212
|
updated_by String?
|
|
181
213
|
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
|
|
182
214
|
litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])
|
|
215
|
+
object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])
|
|
183
216
|
}
|
|
184
217
|
|
|
185
218
|
model LiteLLM_EndUserTable {
|
|
@@ -227,6 +260,7 @@ model LiteLLM_SpendLogs {
|
|
|
227
260
|
messages Json? @default("{}")
|
|
228
261
|
response Json? @default("{}")
|
|
229
262
|
session_id String?
|
|
263
|
+
status String?
|
|
230
264
|
proxy_server_request Json? @default("{}")
|
|
231
265
|
@@index([startTime])
|
|
232
266
|
@@index([end_user])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "litellm-proxy-extras"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.17"
|
|
4
4
|
description = "Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package."
|
|
5
5
|
authors = ["BerriAI"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -22,7 +22,7 @@ requires = ["poetry-core"]
|
|
|
22
22
|
build-backend = "poetry.core.masonry.api"
|
|
23
23
|
|
|
24
24
|
[tool.commitizen]
|
|
25
|
-
version = "0.1.
|
|
25
|
+
version = "0.1.17"
|
|
26
26
|
version_files = [
|
|
27
27
|
"pyproject.toml:version",
|
|
28
28
|
"../requirements.txt:litellm-proxy-extras==",
|
|
File without changes
|
|
File without changes
|
{litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/__init__.py
RENAMED
|
File without changes
|
{litellm_proxy_extras-0.1.15 → litellm_proxy_extras-0.1.17}/litellm_proxy_extras/_logging.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|