litellm-proxy-extras 0.1.19__py3-none-any.whl → 0.2.1__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/20250514142245_add_guardrails_table/migration.sql +15 -0
- litellm_proxy_extras/migrations/20250522223020_managed_object_table/migration.sql +32 -0
- litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sql +9 -0
- litellm_proxy_extras/schema.prisma +31 -4
- {litellm_proxy_extras-0.1.19.dist-info → litellm_proxy_extras-0.2.1.dist-info}/METADATA +2 -2
- {litellm_proxy_extras-0.1.19.dist-info → litellm_proxy_extras-0.2.1.dist-info}/RECORD +8 -5
- {litellm_proxy_extras-0.1.19.dist-info → litellm_proxy_extras-0.2.1.dist-info}/LICENSE +0 -0
- {litellm_proxy_extras-0.1.19.dist-info → litellm_proxy_extras-0.2.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "LiteLLM_GuardrailsTable" (
|
|
3
|
+
"guardrail_id" TEXT NOT NULL,
|
|
4
|
+
"guardrail_name" TEXT NOT NULL,
|
|
5
|
+
"litellm_params" JSONB NOT NULL,
|
|
6
|
+
"guardrail_info" JSONB,
|
|
7
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
8
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "LiteLLM_GuardrailsTable_pkey" PRIMARY KEY ("guardrail_id")
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
-- CreateIndex
|
|
14
|
+
CREATE UNIQUE INDEX "LiteLLM_GuardrailsTable_guardrail_name_key" ON "LiteLLM_GuardrailsTable"("guardrail_name");
|
|
15
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "LiteLLM_ManagedFileTable" ADD COLUMN "created_by" TEXT,
|
|
3
|
+
ADD COLUMN "flat_model_file_ids" TEXT[] DEFAULT ARRAY[]::TEXT[],
|
|
4
|
+
ADD COLUMN "updated_by" TEXT;
|
|
5
|
+
|
|
6
|
+
-- CreateTable
|
|
7
|
+
CREATE TABLE "LiteLLM_ManagedObjectTable" (
|
|
8
|
+
"id" TEXT NOT NULL,
|
|
9
|
+
"unified_object_id" TEXT NOT NULL,
|
|
10
|
+
"model_object_id" TEXT NOT NULL,
|
|
11
|
+
"file_object" JSONB NOT NULL,
|
|
12
|
+
"file_purpose" TEXT NOT NULL,
|
|
13
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
14
|
+
"created_by" TEXT,
|
|
15
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
16
|
+
"updated_by" TEXT,
|
|
17
|
+
|
|
18
|
+
CONSTRAINT "LiteLLM_ManagedObjectTable_pkey" PRIMARY KEY ("id")
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- CreateIndex
|
|
22
|
+
CREATE UNIQUE INDEX "LiteLLM_ManagedObjectTable_unified_object_id_key" ON "LiteLLM_ManagedObjectTable"("unified_object_id");
|
|
23
|
+
|
|
24
|
+
-- CreateIndex
|
|
25
|
+
CREATE UNIQUE INDEX "LiteLLM_ManagedObjectTable_model_object_id_key" ON "LiteLLM_ManagedObjectTable"("model_object_id");
|
|
26
|
+
|
|
27
|
+
-- CreateIndex
|
|
28
|
+
CREATE INDEX "LiteLLM_ManagedObjectTable_unified_object_id_idx" ON "LiteLLM_ManagedObjectTable"("unified_object_id");
|
|
29
|
+
|
|
30
|
+
-- CreateIndex
|
|
31
|
+
CREATE INDEX "LiteLLM_ManagedObjectTable_model_object_id_idx" ON "LiteLLM_ManagedObjectTable"("model_object_id");
|
|
32
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "LiteLLM_DailyTagSpend" ALTER COLUMN "tag" DROP NOT NULL;
|
|
3
|
+
|
|
4
|
+
-- AlterTable
|
|
5
|
+
ALTER TABLE "LiteLLM_DailyTeamSpend" ALTER COLUMN "team_id" DROP NOT NULL;
|
|
6
|
+
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "LiteLLM_DailyUserSpend" ALTER COLUMN "user_id" DROP NOT NULL;
|
|
9
|
+
|
|
@@ -356,7 +356,7 @@ model LiteLLM_AuditLog {
|
|
|
356
356
|
// Track daily user spend metrics per model and key
|
|
357
357
|
model LiteLLM_DailyUserSpend {
|
|
358
358
|
id String @id @default(uuid())
|
|
359
|
-
user_id String
|
|
359
|
+
user_id String?
|
|
360
360
|
date String
|
|
361
361
|
api_key String
|
|
362
362
|
model String
|
|
@@ -383,7 +383,7 @@ model LiteLLM_DailyUserSpend {
|
|
|
383
383
|
// Track daily team spend metrics per model and key
|
|
384
384
|
model LiteLLM_DailyTeamSpend {
|
|
385
385
|
id String @id @default(uuid())
|
|
386
|
-
team_id String
|
|
386
|
+
team_id String?
|
|
387
387
|
date String
|
|
388
388
|
api_key String
|
|
389
389
|
model String
|
|
@@ -410,7 +410,7 @@ model LiteLLM_DailyTeamSpend {
|
|
|
410
410
|
// Track daily team spend metrics per model and key
|
|
411
411
|
model LiteLLM_DailyTagSpend {
|
|
412
412
|
id String @id @default(uuid())
|
|
413
|
-
tag String
|
|
413
|
+
tag String?
|
|
414
414
|
date String
|
|
415
415
|
api_key String
|
|
416
416
|
model String
|
|
@@ -453,13 +453,30 @@ model LiteLLM_ManagedFileTable {
|
|
|
453
453
|
id String @id @default(uuid())
|
|
454
454
|
unified_file_id String @unique // The base64 encoded unified file ID
|
|
455
455
|
file_object Json // Stores the OpenAIFileObject
|
|
456
|
-
model_mappings Json
|
|
456
|
+
model_mappings Json
|
|
457
|
+
flat_model_file_ids String[] @default([]) // Flat list of model file id's - for faster querying of model id -> unified file id
|
|
457
458
|
created_at DateTime @default(now())
|
|
459
|
+
created_by String?
|
|
458
460
|
updated_at DateTime @updatedAt
|
|
461
|
+
updated_by String?
|
|
459
462
|
|
|
460
463
|
@@index([unified_file_id])
|
|
461
464
|
}
|
|
462
465
|
|
|
466
|
+
model LiteLLM_ManagedObjectTable { // for batches or finetuning jobs which use the
|
|
467
|
+
id String @id @default(uuid())
|
|
468
|
+
unified_object_id String @unique // The base64 encoded unified file ID
|
|
469
|
+
model_object_id String @unique // the id returned by the backend API provider
|
|
470
|
+
file_object Json // Stores the OpenAIFileObject
|
|
471
|
+
file_purpose String // either 'batch' or 'fine-tune'
|
|
472
|
+
created_at DateTime @default(now())
|
|
473
|
+
created_by String?
|
|
474
|
+
updated_at DateTime @updatedAt
|
|
475
|
+
updated_by String?
|
|
476
|
+
|
|
477
|
+
@@index([unified_object_id])
|
|
478
|
+
@@index([model_object_id])
|
|
479
|
+
}
|
|
463
480
|
|
|
464
481
|
model LiteLLM_ManagedVectorStoresTable {
|
|
465
482
|
vector_store_id String @id
|
|
@@ -470,4 +487,14 @@ model LiteLLM_ManagedVectorStoresTable {
|
|
|
470
487
|
created_at DateTime @default(now())
|
|
471
488
|
updated_at DateTime @updatedAt
|
|
472
489
|
litellm_credential_name String?
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// Guardrails table for storing guardrail configurations
|
|
493
|
+
model LiteLLM_GuardrailsTable {
|
|
494
|
+
guardrail_id String @id @default(uuid())
|
|
495
|
+
guardrail_name String @unique
|
|
496
|
+
litellm_params Json
|
|
497
|
+
guardrail_info Json?
|
|
498
|
+
created_at DateTime @default(now())
|
|
499
|
+
updated_at DateTime @updatedAt
|
|
473
500
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: litellm-proxy-extras
|
|
3
|
-
Version: 0.1
|
|
3
|
+
Version: 0.2.1
|
|
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.*
|
|
@@ -29,7 +29,7 @@ pip install litellm-proxy-extras
|
|
|
29
29
|
OR
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
pip install litellm[proxy] # installs litellm-proxy-extras and other proxy dependencies
|
|
32
|
+
pip install litellm[proxy] # installs litellm-proxy-extras and other proxy dependencies
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
To use the migrations, run:
|
|
@@ -19,10 +19,13 @@ litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/
|
|
|
19
19
|
litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql,sha256=V4mIhoi3n8sUzV8_YY9AA_wkgvk65m5ZOAU3_DtoUo8,77
|
|
20
20
|
litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql,sha256=UPaAXsryGvVZT_SnOf-1yHu5bKPTVr2gP3zY64FKR7o,1331
|
|
21
21
|
litellm_proxy_extras/migrations/20250510142544_add_session_id_index_spend_logs/migration.sql,sha256=M_y4xLnlGApiUIovLv0xA7lL5gJBZWrcFe7b5MSUOik,102
|
|
22
|
+
litellm_proxy_extras/migrations/20250514142245_add_guardrails_table/migration.sql,sha256=mxBhXoedxkabrkn7YPiKn-OVmoXh6RsSEXY9a0-FkQk,506
|
|
23
|
+
litellm_proxy_extras/migrations/20250522223020_managed_object_table/migration.sql,sha256=SbchBsESJa8M5O4R1iqvfgssX5StSrL85Umd2Drns_Y,1185
|
|
24
|
+
litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sql,sha256=O9C3_XMaHS5Dqu_DRtym89bhspAieSQiQpxK1MTQZgQ,265
|
|
22
25
|
litellm_proxy_extras/migrations/migration_lock.toml,sha256=HbF6jQUaoTYRBzZ1LF4fi37ZK26o6AMRL7viSXBHwhA,24
|
|
23
|
-
litellm_proxy_extras/schema.prisma,sha256
|
|
26
|
+
litellm_proxy_extras/schema.prisma,sha256=-QdRiBCSWuHw1DVg3c379F1LX9SuZL7rnaw9KG8sNhw,19534
|
|
24
27
|
litellm_proxy_extras/utils.py,sha256=QImDkrfX_NGCp0tJ4T9IZpmXyzVZqey4jnVVEO0Hcrs,15050
|
|
25
|
-
litellm_proxy_extras-0.1.
|
|
26
|
-
litellm_proxy_extras-0.1.
|
|
27
|
-
litellm_proxy_extras-0.1.
|
|
28
|
-
litellm_proxy_extras-0.1.
|
|
28
|
+
litellm_proxy_extras-0.2.1.dist-info/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
|
|
29
|
+
litellm_proxy_extras-0.2.1.dist-info/METADATA,sha256=RU25WM1o-9emQtXPLTOm4VlInKrosWhm3TuKkK05vnQ,1266
|
|
30
|
+
litellm_proxy_extras-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
31
|
+
litellm_proxy_extras-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|