litellm-proxy-extras 0.2.5__py3-none-any.whl → 0.2.11__py3-none-any.whl
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/migrations/20250625145206_cascade_budget_and_loosen_managed_file_json/migration.sql +9 -0
- litellm_proxy_extras/migrations/20250625213625_add_status_to_managed_object_table/migration.sql +3 -0
- litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/migration.sql +3 -0
- litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql +42 -0
- litellm_proxy_extras/migrations/20250711220620_add_stdio_mcp/migration.sql +10 -0
- litellm_proxy_extras/migrations/20250718125714_add_litellm_params_to_vector_stores/migration.sql +3 -0
- litellm_proxy_extras/schema.prisma +29 -14
- {litellm_proxy_extras-0.2.5.dist-info → litellm_proxy_extras-0.2.11.dist-info}/METADATA +1 -1
- {litellm_proxy_extras-0.2.5.dist-info → litellm_proxy_extras-0.2.11.dist-info}/RECORD +11 -5
- {litellm_proxy_extras-0.2.5.dist-info → litellm_proxy_extras-0.2.11.dist-info}/LICENSE +0 -0
- {litellm_proxy_extras-0.2.5.dist-info → litellm_proxy_extras-0.2.11.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
-- DropForeignKey
|
|
2
|
+
ALTER TABLE "LiteLLM_TeamMembership" DROP CONSTRAINT "LiteLLM_TeamMembership_budget_id_fkey";
|
|
3
|
+
|
|
4
|
+
-- AlterTable
|
|
5
|
+
ALTER TABLE "LiteLLM_ManagedFileTable" ALTER COLUMN "file_object" DROP NOT NULL;
|
|
6
|
+
|
|
7
|
+
-- AddForeignKey
|
|
8
|
+
ALTER TABLE "LiteLLM_TeamMembership" ADD CONSTRAINT "LiteLLM_TeamMembership_budget_id_fkey" FOREIGN KEY ("budget_id") REFERENCES "LiteLLM_BudgetTable"("budget_id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
9
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
-- DropIndex
|
|
2
|
+
DROP INDEX "LiteLLM_DailyTagSpend_tag_date_api_key_model_custom_llm_pro_key";
|
|
3
|
+
|
|
4
|
+
-- DropIndex
|
|
5
|
+
DROP INDEX "LiteLLM_DailyTeamSpend_team_id_date_api_key_model_custom_ll_key";
|
|
6
|
+
|
|
7
|
+
-- DropIndex
|
|
8
|
+
DROP INDEX "LiteLLM_DailyUserSpend_user_id_date_api_key_model_custom_ll_key";
|
|
9
|
+
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "LiteLLM_DailyTagSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
|
|
12
|
+
ALTER COLUMN "model" DROP NOT NULL;
|
|
13
|
+
|
|
14
|
+
-- AlterTable
|
|
15
|
+
ALTER TABLE "LiteLLM_DailyTeamSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
|
|
16
|
+
ALTER COLUMN "model" DROP NOT NULL;
|
|
17
|
+
|
|
18
|
+
-- AlterTable
|
|
19
|
+
ALTER TABLE "LiteLLM_DailyUserSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
|
|
20
|
+
ALTER COLUMN "model" DROP NOT NULL;
|
|
21
|
+
|
|
22
|
+
-- AlterTable
|
|
23
|
+
ALTER TABLE "LiteLLM_SpendLogs" ADD COLUMN "mcp_namespaced_tool_name" TEXT;
|
|
24
|
+
|
|
25
|
+
-- CreateIndex
|
|
26
|
+
CREATE INDEX "LiteLLM_DailyTagSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyTagSpend"("mcp_namespaced_tool_name");
|
|
27
|
+
|
|
28
|
+
-- CreateIndex
|
|
29
|
+
CREATE UNIQUE INDEX "LiteLLM_DailyTagSpend_tag_date_api_key_model_custom_llm_pro_key" ON "LiteLLM_DailyTagSpend"("tag", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
|
|
30
|
+
|
|
31
|
+
-- CreateIndex
|
|
32
|
+
CREATE INDEX "LiteLLM_DailyTeamSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyTeamSpend"("mcp_namespaced_tool_name");
|
|
33
|
+
|
|
34
|
+
-- CreateIndex
|
|
35
|
+
CREATE UNIQUE INDEX "LiteLLM_DailyTeamSpend_team_id_date_api_key_model_custom_ll_key" ON "LiteLLM_DailyTeamSpend"("team_id", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
|
|
36
|
+
|
|
37
|
+
-- CreateIndex
|
|
38
|
+
CREATE INDEX "LiteLLM_DailyUserSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyUserSpend"("mcp_namespaced_tool_name");
|
|
39
|
+
|
|
40
|
+
-- CreateIndex
|
|
41
|
+
CREATE UNIQUE INDEX "LiteLLM_DailyUserSpend_user_id_date_api_key_model_custom_ll_key" ON "LiteLLM_DailyUserSpend"("user_id", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
|
|
42
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN "args" TEXT[] DEFAULT ARRAY[]::TEXT[],
|
|
3
|
+
ADD COLUMN "command" TEXT,
|
|
4
|
+
ADD COLUMN "env" JSONB DEFAULT '{}',
|
|
5
|
+
ADD COLUMN "mcp_access_groups" TEXT[],
|
|
6
|
+
ALTER COLUMN "url" DROP NOT NULL;
|
|
7
|
+
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE "LiteLLM_ObjectPermissionTable" ADD COLUMN "mcp_access_groups" TEXT[] DEFAULT ARRAY[]::TEXT[];
|
|
10
|
+
|
|
@@ -155,8 +155,8 @@ model LiteLLM_UserTable {
|
|
|
155
155
|
model LiteLLM_ObjectPermissionTable {
|
|
156
156
|
object_permission_id String @id @default(uuid())
|
|
157
157
|
mcp_servers String[] @default([])
|
|
158
|
+
mcp_access_groups String[] @default([])
|
|
158
159
|
vector_stores String[] @default([])
|
|
159
|
-
|
|
160
160
|
teams LiteLLM_TeamTable[]
|
|
161
161
|
verification_tokens LiteLLM_VerificationToken[]
|
|
162
162
|
organizations LiteLLM_OrganizationTable[]
|
|
@@ -168,7 +168,7 @@ model LiteLLM_MCPServerTable {
|
|
|
168
168
|
server_id String @id @default(uuid())
|
|
169
169
|
alias String?
|
|
170
170
|
description String?
|
|
171
|
-
url String
|
|
171
|
+
url String?
|
|
172
172
|
transport String @default("sse")
|
|
173
173
|
spec_version String @default("2025-03-26")
|
|
174
174
|
auth_type String?
|
|
@@ -176,6 +176,12 @@ model LiteLLM_MCPServerTable {
|
|
|
176
176
|
created_by String?
|
|
177
177
|
updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
|
|
178
178
|
updated_by String?
|
|
179
|
+
mcp_info Json? @default("{}")
|
|
180
|
+
mcp_access_groups String[]
|
|
181
|
+
// Stdio-specific fields
|
|
182
|
+
command String?
|
|
183
|
+
args String[] @default([])
|
|
184
|
+
env Json? @default("{}")
|
|
179
185
|
}
|
|
180
186
|
|
|
181
187
|
// Generate Tokens for Proxy
|
|
@@ -262,6 +268,7 @@ model LiteLLM_SpendLogs {
|
|
|
262
268
|
response Json? @default("{}")
|
|
263
269
|
session_id String?
|
|
264
270
|
status String?
|
|
271
|
+
mcp_namespaced_tool_name String?
|
|
265
272
|
proxy_server_request Json? @default("{}")
|
|
266
273
|
@@index([startTime])
|
|
267
274
|
@@index([end_user])
|
|
@@ -360,9 +367,10 @@ model LiteLLM_DailyUserSpend {
|
|
|
360
367
|
user_id String?
|
|
361
368
|
date String
|
|
362
369
|
api_key String
|
|
363
|
-
model String
|
|
370
|
+
model String?
|
|
364
371
|
model_group String?
|
|
365
|
-
custom_llm_provider String?
|
|
372
|
+
custom_llm_provider String?
|
|
373
|
+
mcp_namespaced_tool_name String?
|
|
366
374
|
prompt_tokens BigInt @default(0)
|
|
367
375
|
completion_tokens BigInt @default(0)
|
|
368
376
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -374,11 +382,12 @@ model LiteLLM_DailyUserSpend {
|
|
|
374
382
|
created_at DateTime @default(now())
|
|
375
383
|
updated_at DateTime @updatedAt
|
|
376
384
|
|
|
377
|
-
@@unique([user_id, date, api_key, model, custom_llm_provider])
|
|
385
|
+
@@unique([user_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
378
386
|
@@index([date])
|
|
379
387
|
@@index([user_id])
|
|
380
388
|
@@index([api_key])
|
|
381
389
|
@@index([model])
|
|
390
|
+
@@index([mcp_namespaced_tool_name])
|
|
382
391
|
}
|
|
383
392
|
|
|
384
393
|
// Track daily team spend metrics per model and key
|
|
@@ -387,9 +396,10 @@ model LiteLLM_DailyTeamSpend {
|
|
|
387
396
|
team_id String?
|
|
388
397
|
date String
|
|
389
398
|
api_key String
|
|
390
|
-
model String
|
|
399
|
+
model String?
|
|
391
400
|
model_group String?
|
|
392
|
-
custom_llm_provider String?
|
|
401
|
+
custom_llm_provider String?
|
|
402
|
+
mcp_namespaced_tool_name String?
|
|
393
403
|
prompt_tokens BigInt @default(0)
|
|
394
404
|
completion_tokens BigInt @default(0)
|
|
395
405
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -401,11 +411,12 @@ model LiteLLM_DailyTeamSpend {
|
|
|
401
411
|
created_at DateTime @default(now())
|
|
402
412
|
updated_at DateTime @updatedAt
|
|
403
413
|
|
|
404
|
-
@@unique([team_id, date, api_key, model, custom_llm_provider])
|
|
414
|
+
@@unique([team_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
405
415
|
@@index([date])
|
|
406
416
|
@@index([team_id])
|
|
407
417
|
@@index([api_key])
|
|
408
418
|
@@index([model])
|
|
419
|
+
@@index([mcp_namespaced_tool_name])
|
|
409
420
|
}
|
|
410
421
|
|
|
411
422
|
// Track daily team spend metrics per model and key
|
|
@@ -414,9 +425,10 @@ model LiteLLM_DailyTagSpend {
|
|
|
414
425
|
tag String?
|
|
415
426
|
date String
|
|
416
427
|
api_key String
|
|
417
|
-
model String
|
|
428
|
+
model String?
|
|
418
429
|
model_group String?
|
|
419
|
-
custom_llm_provider String?
|
|
430
|
+
custom_llm_provider String?
|
|
431
|
+
mcp_namespaced_tool_name String?
|
|
420
432
|
prompt_tokens BigInt @default(0)
|
|
421
433
|
completion_tokens BigInt @default(0)
|
|
422
434
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -428,11 +440,12 @@ model LiteLLM_DailyTagSpend {
|
|
|
428
440
|
created_at DateTime @default(now())
|
|
429
441
|
updated_at DateTime @updatedAt
|
|
430
442
|
|
|
431
|
-
@@unique([tag, date, api_key, model, custom_llm_provider])
|
|
443
|
+
@@unique([tag, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
432
444
|
@@index([date])
|
|
433
445
|
@@index([tag])
|
|
434
446
|
@@index([api_key])
|
|
435
447
|
@@index([model])
|
|
448
|
+
@@index([mcp_namespaced_tool_name])
|
|
436
449
|
}
|
|
437
450
|
|
|
438
451
|
|
|
@@ -453,8 +466,8 @@ enum JobStatus {
|
|
|
453
466
|
model LiteLLM_ManagedFileTable {
|
|
454
467
|
id String @id @default(uuid())
|
|
455
468
|
unified_file_id String @unique // The base64 encoded unified file ID
|
|
456
|
-
file_object Json // Stores the OpenAIFileObject
|
|
457
|
-
model_mappings Json
|
|
469
|
+
file_object Json? // Stores the OpenAIFileObject
|
|
470
|
+
model_mappings Json
|
|
458
471
|
flat_model_file_ids String[] @default([]) // Flat list of model file id's - for faster querying of model id -> unified file id
|
|
459
472
|
created_at DateTime @default(now())
|
|
460
473
|
created_by String?
|
|
@@ -469,7 +482,8 @@ model LiteLLM_ManagedObjectTable { // for batches or finetuning jobs which use t
|
|
|
469
482
|
unified_object_id String @unique // The base64 encoded unified file ID
|
|
470
483
|
model_object_id String @unique // the id returned by the backend API provider
|
|
471
484
|
file_object Json // Stores the OpenAIFileObject
|
|
472
|
-
file_purpose String // either 'batch' or 'fine-tune'
|
|
485
|
+
file_purpose String // either 'batch' or 'fine-tune'
|
|
486
|
+
status String? // check if batch cost has been tracked
|
|
473
487
|
created_at DateTime @default(now())
|
|
474
488
|
created_by String?
|
|
475
489
|
updated_at DateTime @updatedAt
|
|
@@ -488,6 +502,7 @@ model LiteLLM_ManagedVectorStoresTable {
|
|
|
488
502
|
created_at DateTime @default(now())
|
|
489
503
|
updated_at DateTime @updatedAt
|
|
490
504
|
litellm_credential_name String?
|
|
505
|
+
litellm_params Json?
|
|
491
506
|
}
|
|
492
507
|
|
|
493
508
|
// Guardrails table for storing guardrail configurations
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: litellm-proxy-extras
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.11
|
|
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.*
|
|
@@ -25,10 +25,16 @@ litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sq
|
|
|
25
25
|
litellm_proxy_extras/migrations/20250528185438_add_vector_stores_to_object_permissions/migration.sql,sha256=CMoueiGIy2-_7Ik7ktzGCRPfhBH43Y7nJkAvfxcYnI0,122
|
|
26
26
|
litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql,sha256=LMUCGnK6z6Bh_mKikp5_0Xs_EnsoPMb-dTY-sJBnXVg,332
|
|
27
27
|
litellm_proxy_extras/migrations/20250618225828_add_health_check_table/migration.sql,sha256=FpLvgnxHKp3Jb-USx-EWOGeVCXDpSznGBloqlWAm9bg,980
|
|
28
|
+
litellm_proxy_extras/migrations/20250625145206_cascade_budget_and_loosen_managed_file_json/migration.sql,sha256=AjRZvl6dlMp9YRosTy0Iaa6ZqMXAydFY7FlzOp-T09I,429
|
|
29
|
+
litellm_proxy_extras/migrations/20250625213625_add_status_to_managed_object_table/migration.sql,sha256=XcFDSGnTIOue1laLzJL062Mv6mI2bu05KCOgrzvWQK8,86
|
|
30
|
+
litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/migration.sql,sha256=2r7drloJuEDy-x9_fsQXB613YJ7gg6yIsL5MhFEv-Nk,98
|
|
31
|
+
litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql,sha256=L973Q5PV5pFcpuZzyOzo6aFNK02EZK-KAHfcyjtPAIU,1854
|
|
32
|
+
litellm_proxy_extras/migrations/20250711220620_add_stdio_mcp/migration.sql,sha256=t3telBGnxzo8kXQYnyR69vgxcPYf9ysoWt1ySRHnJgE,381
|
|
33
|
+
litellm_proxy_extras/migrations/20250718125714_add_litellm_params_to_vector_stores/migration.sql,sha256=yZfez4-HKbZeRQs4E6QhrMA7wuyrBQrYzTrW9S1HwcY,101
|
|
28
34
|
litellm_proxy_extras/migrations/migration_lock.toml,sha256=HbF6jQUaoTYRBzZ1LF4fi37ZK26o6AMRL7viSXBHwhA,24
|
|
29
|
-
litellm_proxy_extras/schema.prisma,sha256=
|
|
35
|
+
litellm_proxy_extras/schema.prisma,sha256=sKIAhiHqvCFkEre8iHTaQY61MKE4SyMjnzJKZBhccU0,20718
|
|
30
36
|
litellm_proxy_extras/utils.py,sha256=QImDkrfX_NGCp0tJ4T9IZpmXyzVZqey4jnVVEO0Hcrs,15050
|
|
31
|
-
litellm_proxy_extras-0.2.
|
|
32
|
-
litellm_proxy_extras-0.2.
|
|
33
|
-
litellm_proxy_extras-0.2.
|
|
34
|
-
litellm_proxy_extras-0.2.
|
|
37
|
+
litellm_proxy_extras-0.2.11.dist-info/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
|
|
38
|
+
litellm_proxy_extras-0.2.11.dist-info/METADATA,sha256=bTt-shIFFCjyOXTK5G8EusYBhuan6xPIfPvdi5X2DYU,1267
|
|
39
|
+
litellm_proxy_extras-0.2.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
40
|
+
litellm_proxy_extras-0.2.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|