litellm-proxy-extras 0.2.13__py3-none-any.whl → 0.2.19__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/20250507161526_add_mcp_table_to_db/migration.sql +0 -10
- litellm_proxy_extras/migrations/20250802162330_prompt_table/migration.sql +15 -0
- litellm_proxy_extras/migrations/20250806095134_rename_alias_to_server_name_mcp_table/migration.sql +10 -0
- litellm_proxy_extras/migrations/20250918083359_drop_spec_version_column_from_mcp_table/migration.sql +8 -0
- litellm_proxy_extras/schema.prisma +10 -1
- litellm_proxy_extras/utils.py +1 -2
- {litellm_proxy_extras-0.2.13.dist-info → litellm_proxy_extras-0.2.19.dist-info}/METADATA +5 -2
- {litellm_proxy_extras-0.2.13.dist-info → litellm_proxy_extras-0.2.19.dist-info}/RECORD +11 -8
- {litellm_proxy_extras-0.2.13.dist-info → litellm_proxy_extras-0.2.19.dist-info}/WHEEL +1 -1
- /litellm_proxy_extras/migrations/{20250101000000_add_health_check_fields_to_mcp_servers → 20250507161527_add_health_check_fields_to_mcp_servers}/migration.sql +0 -0
- {litellm_proxy_extras-0.2.13.dist-info → litellm_proxy_extras-0.2.19.dist-info/licenses}/LICENSE +0 -0
|
@@ -15,13 +15,3 @@ CREATE TABLE "LiteLLM_MCPServerTable" (
|
|
|
15
15
|
CONSTRAINT "LiteLLM_MCPServerTable_pkey" PRIMARY KEY ("server_id")
|
|
16
16
|
);
|
|
17
17
|
|
|
18
|
-
-- Migration for existing tables: rename alias to server_name if upgrading
|
|
19
|
-
DO $$
|
|
20
|
-
BEGIN
|
|
21
|
-
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'LiteLLM_MCPServerTable' AND column_name = 'alias') THEN
|
|
22
|
-
ALTER TABLE "LiteLLM_MCPServerTable" RENAME COLUMN "alias" TO "server_name";
|
|
23
|
-
END IF;
|
|
24
|
-
END $$;
|
|
25
|
-
-- Migration for existing tables: add alias column if upgrading
|
|
26
|
-
ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN IF NOT EXISTS "alias" TEXT;
|
|
27
|
-
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "LiteLLM_PromptTable" (
|
|
3
|
+
"id" TEXT NOT NULL,
|
|
4
|
+
"prompt_id" TEXT NOT NULL,
|
|
5
|
+
"litellm_params" JSONB NOT NULL,
|
|
6
|
+
"prompt_info" JSONB,
|
|
7
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
8
|
+
"updated_at" TIMESTAMP(3) NOT NULL,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "LiteLLM_PromptTable_pkey" PRIMARY KEY ("id")
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
-- CreateIndex
|
|
14
|
+
CREATE UNIQUE INDEX "LiteLLM_PromptTable_prompt_id_key" ON "LiteLLM_PromptTable"("prompt_id");
|
|
15
|
+
|
litellm_proxy_extras/migrations/20250806095134_rename_alias_to_server_name_mcp_table/migration.sql
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- Migration for existing tables: rename alias to server_name if upgrading
|
|
2
|
+
DO $$
|
|
3
|
+
BEGIN
|
|
4
|
+
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'LiteLLM_MCPServerTable' AND column_name = 'alias') THEN
|
|
5
|
+
ALTER TABLE "LiteLLM_MCPServerTable" RENAME COLUMN "alias" TO "server_name";
|
|
6
|
+
END IF;
|
|
7
|
+
END $$;
|
|
8
|
+
|
|
9
|
+
-- Migration for existing tables: add alias column if upgrading
|
|
10
|
+
ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN IF NOT EXISTS "alias" TEXT;
|
|
@@ -171,7 +171,6 @@ model LiteLLM_MCPServerTable {
|
|
|
171
171
|
description String?
|
|
172
172
|
url String?
|
|
173
173
|
transport String @default("sse")
|
|
174
|
-
spec_version String @default("2025-03-26")
|
|
175
174
|
auth_type String?
|
|
176
175
|
created_at DateTime? @default(now()) @map("created_at")
|
|
177
176
|
created_by String?
|
|
@@ -520,6 +519,16 @@ model LiteLLM_GuardrailsTable {
|
|
|
520
519
|
updated_at DateTime @updatedAt
|
|
521
520
|
}
|
|
522
521
|
|
|
522
|
+
// Prompt table for storing prompt configurations
|
|
523
|
+
model LiteLLM_PromptTable {
|
|
524
|
+
id String @id @default(uuid())
|
|
525
|
+
prompt_id String @unique
|
|
526
|
+
litellm_params Json
|
|
527
|
+
prompt_info Json?
|
|
528
|
+
created_at DateTime @default(now())
|
|
529
|
+
updated_at DateTime @updatedAt
|
|
530
|
+
}
|
|
531
|
+
|
|
523
532
|
model LiteLLM_HealthCheckTable {
|
|
524
533
|
health_check_id String @id @default(uuid())
|
|
525
534
|
model_name String
|
litellm_proxy_extras/utils.py
CHANGED
|
@@ -243,7 +243,6 @@ class ProxyExtrasDBManager:
|
|
|
243
243
|
bool: True if setup was successful, False otherwise
|
|
244
244
|
"""
|
|
245
245
|
schema_path = ProxyExtrasDBManager._get_prisma_dir() + "/schema.prisma"
|
|
246
|
-
use_migrate = str_to_bool(os.getenv("USE_PRISMA_MIGRATE")) or use_migrate
|
|
247
246
|
for attempt in range(4):
|
|
248
247
|
original_dir = os.getcwd()
|
|
249
248
|
migrations_dir = ProxyExtrasDBManager._get_prisma_dir()
|
|
@@ -299,7 +298,7 @@ class ProxyExtrasDBManager:
|
|
|
299
298
|
and "database schema is not empty" in e.stderr
|
|
300
299
|
):
|
|
301
300
|
logger.info(
|
|
302
|
-
"Database schema is not empty, creating baseline migration"
|
|
301
|
+
"Database schema is not empty, creating baseline migration. In read-only file system, please set an environment variable `LITELLM_MIGRATION_DIR` to a writable directory to enable migrations. Learn more - https://docs.litellm.ai/docs/proxy/prod#read-only-file-system"
|
|
303
302
|
)
|
|
304
303
|
ProxyExtrasDBManager._create_baseline_migration(schema_path)
|
|
305
304
|
logger.info(
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: litellm-proxy-extras
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.19
|
|
4
4
|
Summary: Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package.
|
|
5
|
+
License-File: LICENSE
|
|
5
6
|
Author: BerriAI
|
|
6
7
|
Requires-Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
|
|
7
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -9,6 +10,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
9
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
15
|
Project-URL: Documentation, https://docs.litellm.ai
|
|
13
16
|
Project-URL: Homepage, https://litellm.ai
|
|
14
17
|
Project-URL: Repository, https://github.com/BerriAI/litellm
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
litellm_proxy_extras/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
litellm_proxy_extras/_logging.py,sha256=7KoWerTOol5IPNyNdbZvLuSlpQbEGE235VgzwpgafKQ,393
|
|
3
|
-
litellm_proxy_extras/migrations/20250101000000_add_health_check_fields_to_mcp_servers/migration.sql,sha256=IzXvP90W4R1vkrsP3WbARJdGLEFauW1e2czTmZaDYOM,285
|
|
4
3
|
litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql,sha256=9aRWmBbLf7EWbCMXifDl5zL9bAw0uPXJut1AXNKrSTE,13383
|
|
5
4
|
litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql,sha256=dY-dNCLosWmXNli2B9wqX4hZpp3s0DL3IwEPtTTC134,1179
|
|
6
5
|
litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql,sha256=or5TaEgH4cHwR5kDvVjZvcAj1OwzTxjqwO-lxXe3FXk,110
|
|
@@ -15,7 +14,8 @@ litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/m
|
|
|
15
14
|
litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql,sha256=XGyDLGakqBt30xuGS-RT5tWhk_Ki7teenxpvKDkIo2E,119
|
|
16
15
|
litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql,sha256=dSjU5QavHMM60siy6f_69DZpFCA4lUfWDL0AUEPEt2g,139
|
|
17
16
|
litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql,sha256=SmXedKWYWwYAZjg-usw-905nXxyU9SOws9teFATezUA,479
|
|
18
|
-
litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql,sha256=
|
|
17
|
+
litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql,sha256=C_0iU6F-XUST0BekRSrFGMW69_pwBLSS7Pu5HvGNJ7c,511
|
|
18
|
+
litellm_proxy_extras/migrations/20250507161527_add_health_check_fields_to_mcp_servers/migration.sql,sha256=IzXvP90W4R1vkrsP3WbARJdGLEFauW1e2czTmZaDYOM,285
|
|
19
19
|
litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql,sha256=G2NONS9XAMDdkH-0tpaPimK4ezs94hkwteRK1m7oA1Y,1672
|
|
20
20
|
litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql,sha256=V4mIhoi3n8sUzV8_YY9AA_wkgvk65m5ZOAU3_DtoUo8,77
|
|
21
21
|
litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql,sha256=UPaAXsryGvVZT_SnOf-1yHu5bKPTVr2gP3zY64FKR7o,1331
|
|
@@ -32,10 +32,13 @@ litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/m
|
|
|
32
32
|
litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql,sha256=L973Q5PV5pFcpuZzyOzo6aFNK02EZK-KAHfcyjtPAIU,1854
|
|
33
33
|
litellm_proxy_extras/migrations/20250711220620_add_stdio_mcp/migration.sql,sha256=t3telBGnxzo8kXQYnyR69vgxcPYf9ysoWt1ySRHnJgE,381
|
|
34
34
|
litellm_proxy_extras/migrations/20250718125714_add_litellm_params_to_vector_stores/migration.sql,sha256=yZfez4-HKbZeRQs4E6QhrMA7wuyrBQrYzTrW9S1HwcY,101
|
|
35
|
+
litellm_proxy_extras/migrations/20250802162330_prompt_table/migration.sql,sha256=rssp_rCzwY5veFUJeGSOoGOvck3IZ9sL86RuHzQJ-s0,452
|
|
36
|
+
litellm_proxy_extras/migrations/20250806095134_rename_alias_to_server_name_mcp_table/migration.sql,sha256=Bge3bWO96jFhVzdjHX5sD7SzCLnrrYMq_6ilzJFAQ6w,465
|
|
37
|
+
litellm_proxy_extras/migrations/20250918083359_drop_spec_version_column_from_mcp_table/migration.sql,sha256=7Q2E0OSK4wZXi_GeNR9qF-SbQh1OHvJG-A-02nQxBgU,240
|
|
35
38
|
litellm_proxy_extras/migrations/migration_lock.toml,sha256=HbF6jQUaoTYRBzZ1LF4fi37ZK26o6AMRL7viSXBHwhA,24
|
|
36
|
-
litellm_proxy_extras/schema.prisma,sha256=
|
|
37
|
-
litellm_proxy_extras/utils.py,sha256=
|
|
38
|
-
litellm_proxy_extras-0.2.
|
|
39
|
-
litellm_proxy_extras-0.2.
|
|
40
|
-
litellm_proxy_extras-0.2.
|
|
41
|
-
litellm_proxy_extras-0.2.
|
|
39
|
+
litellm_proxy_extras/schema.prisma,sha256=rH7fYi45dOYCqxhcSp_y6euq-EIhLVBQ9VX0GqJor18,21076
|
|
40
|
+
litellm_proxy_extras/utils.py,sha256=zcUGsFa7lI9pbC8Sj6GQitAYULuKq89vXBGxm7R87rg,15175
|
|
41
|
+
litellm_proxy_extras-0.2.19.dist-info/METADATA,sha256=6oIXM-mT8mdzO2eTjoEiHpaDaJHyQwIA18z8zZr-3qo,1391
|
|
42
|
+
litellm_proxy_extras-0.2.19.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
|
43
|
+
litellm_proxy_extras-0.2.19.dist-info/licenses/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
|
|
44
|
+
litellm_proxy_extras-0.2.19.dist-info/RECORD,,
|
|
File without changes
|
{litellm_proxy_extras-0.2.13.dist-info → litellm_proxy_extras-0.2.19.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|