litellm-proxy-extras 0.1.21__tar.gz → 0.2.1__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.21 → litellm_proxy_extras-0.2.1}/PKG-INFO +2 -3
- litellm_proxy_extras-0.2.1/litellm_proxy_extras/migrations/20250522223020_managed_object_table/migration.sql +32 -0
- litellm_proxy_extras-0.2.1/litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sql +9 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/schema.prisma +21 -4
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/pyproject.toml +2 -2
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/LICENSE +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/README.md +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/__init__.py +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/_logging.py +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250510142544_add_session_id_index_spend_logs/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/20250514142245_add_guardrails_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
- {litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
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.*
|
|
@@ -9,7 +9,6 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
13
12
|
Project-URL: Documentation, https://docs.litellm.ai
|
|
14
13
|
Project-URL: Homepage, https://litellm.ai
|
|
15
14
|
Project-URL: Repository, https://github.com/BerriAI/litellm
|
|
@@ -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
|
+
|
{litellm_proxy_extras-0.1.21 → litellm_proxy_extras-0.2.1}/litellm_proxy_extras/schema.prisma
RENAMED
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "litellm-proxy-extras"
|
|
3
|
-
version = "0.1
|
|
3
|
+
version = "0.2.1"
|
|
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.2.1"
|
|
26
26
|
version_files = [
|
|
27
27
|
"pyproject.toml:version",
|
|
28
28
|
"../requirements.txt:litellm-proxy-extras==",
|
|
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
|
|
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
|