litellm-proxy-extras 0.2.15__py3-none-any.whl → 0.2.20__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/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 +4 -1
- litellm_proxy_extras/utils.py +1 -2
- {litellm_proxy_extras-0.2.15.dist-info → litellm_proxy_extras-0.2.20.dist-info}/METADATA +5 -2
- {litellm_proxy_extras-0.2.15.dist-info → litellm_proxy_extras-0.2.20.dist-info}/RECORD +9 -7
- {litellm_proxy_extras-0.2.15.dist-info → litellm_proxy_extras-0.2.20.dist-info}/WHEEL +1 -1
- {litellm_proxy_extras-0.2.15.dist-info → litellm_proxy_extras-0.2.20.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
|
-
|
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?
|
|
@@ -222,6 +221,10 @@ model LiteLLM_VerificationToken {
|
|
|
222
221
|
created_by String?
|
|
223
222
|
updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
|
|
224
223
|
updated_by String?
|
|
224
|
+
rotation_count Int? @default(0) // Number of times key has been rotated
|
|
225
|
+
auto_rotate Boolean? @default(false) // Whether this key should be auto-rotated
|
|
226
|
+
rotation_interval String? // How often to rotate (e.g., "30d", "90d")
|
|
227
|
+
last_rotation_at DateTime? // When this key was last rotated
|
|
225
228
|
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
|
|
226
229
|
litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])
|
|
227
230
|
object_permission LiteLLM_ObjectPermissionTable? @relation(fields: [object_permission_id], references: [object_permission_id])
|
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.20
|
|
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
|
|
@@ -14,7 +14,7 @@ litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/m
|
|
|
14
14
|
litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql,sha256=XGyDLGakqBt30xuGS-RT5tWhk_Ki7teenxpvKDkIo2E,119
|
|
15
15
|
litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql,sha256=dSjU5QavHMM60siy6f_69DZpFCA4lUfWDL0AUEPEt2g,139
|
|
16
16
|
litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql,sha256=SmXedKWYWwYAZjg-usw-905nXxyU9SOws9teFATezUA,479
|
|
17
|
-
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
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
|
|
@@ -33,10 +33,12 @@ litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migr
|
|
|
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
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
|
|
36
38
|
litellm_proxy_extras/migrations/migration_lock.toml,sha256=HbF6jQUaoTYRBzZ1LF4fi37ZK26o6AMRL7viSXBHwhA,24
|
|
37
|
-
litellm_proxy_extras/schema.prisma,sha256=
|
|
38
|
-
litellm_proxy_extras/utils.py,sha256=
|
|
39
|
-
litellm_proxy_extras-0.2.
|
|
40
|
-
litellm_proxy_extras-0.2.
|
|
41
|
-
litellm_proxy_extras-0.2.
|
|
42
|
-
litellm_proxy_extras-0.2.
|
|
39
|
+
litellm_proxy_extras/schema.prisma,sha256=gdGZuRG8KMpIfrkBBFOZQASr7jUx7S1BB4sKZdPh6yU,21393
|
|
40
|
+
litellm_proxy_extras/utils.py,sha256=zcUGsFa7lI9pbC8Sj6GQitAYULuKq89vXBGxm7R87rg,15175
|
|
41
|
+
litellm_proxy_extras-0.2.20.dist-info/METADATA,sha256=ASugbVb0Ty0eNhc5MTTryXOBuGyX1om9E1o4SSfFToA,1391
|
|
42
|
+
litellm_proxy_extras-0.2.20.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
43
|
+
litellm_proxy_extras-0.2.20.dist-info/licenses/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
|
|
44
|
+
litellm_proxy_extras-0.2.20.dist-info/RECORD,,
|
{litellm_proxy_extras-0.2.15.dist-info → litellm_proxy_extras-0.2.20.dist-info/licenses}/LICENSE
RENAMED
|
File without changes
|