litellm-proxy-extras 0.2.8__tar.gz → 0.2.9__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.2.8 → litellm_proxy_extras-0.2.9}/PKG-INFO +1 -1
- litellm_proxy_extras-0.2.9/litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql +42 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/schema.prisma +16 -9
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/pyproject.toml +2 -2
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/LICENSE +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/README.md +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/__init__.py +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/_logging.py +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250510142544_add_session_id_index_spend_logs/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250514142245_add_guardrails_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250522223020_managed_object_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250528185438_add_vector_stores_to_object_permissions/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250618225828_add_health_check_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250625145206_cascade_budget_and_loosen_managed_file_json/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250625213625_add_status_to_managed_object_table/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/migration.sql +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
- {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: litellm-proxy-extras
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
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.*
|
|
@@ -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
|
+
|
{litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.9}/litellm_proxy_extras/schema.prisma
RENAMED
|
@@ -262,6 +262,7 @@ model LiteLLM_SpendLogs {
|
|
|
262
262
|
response Json? @default("{}")
|
|
263
263
|
session_id String?
|
|
264
264
|
status String?
|
|
265
|
+
mcp_namespaced_tool_name String?
|
|
265
266
|
proxy_server_request Json? @default("{}")
|
|
266
267
|
@@index([startTime])
|
|
267
268
|
@@index([end_user])
|
|
@@ -360,9 +361,10 @@ model LiteLLM_DailyUserSpend {
|
|
|
360
361
|
user_id String?
|
|
361
362
|
date String
|
|
362
363
|
api_key String
|
|
363
|
-
model String
|
|
364
|
+
model String?
|
|
364
365
|
model_group String?
|
|
365
|
-
custom_llm_provider String?
|
|
366
|
+
custom_llm_provider String?
|
|
367
|
+
mcp_namespaced_tool_name String?
|
|
366
368
|
prompt_tokens BigInt @default(0)
|
|
367
369
|
completion_tokens BigInt @default(0)
|
|
368
370
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -374,11 +376,12 @@ model LiteLLM_DailyUserSpend {
|
|
|
374
376
|
created_at DateTime @default(now())
|
|
375
377
|
updated_at DateTime @updatedAt
|
|
376
378
|
|
|
377
|
-
@@unique([user_id, date, api_key, model, custom_llm_provider])
|
|
379
|
+
@@unique([user_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
378
380
|
@@index([date])
|
|
379
381
|
@@index([user_id])
|
|
380
382
|
@@index([api_key])
|
|
381
383
|
@@index([model])
|
|
384
|
+
@@index([mcp_namespaced_tool_name])
|
|
382
385
|
}
|
|
383
386
|
|
|
384
387
|
// Track daily team spend metrics per model and key
|
|
@@ -387,9 +390,10 @@ model LiteLLM_DailyTeamSpend {
|
|
|
387
390
|
team_id String?
|
|
388
391
|
date String
|
|
389
392
|
api_key String
|
|
390
|
-
model String
|
|
393
|
+
model String?
|
|
391
394
|
model_group String?
|
|
392
|
-
custom_llm_provider String?
|
|
395
|
+
custom_llm_provider String?
|
|
396
|
+
mcp_namespaced_tool_name String?
|
|
393
397
|
prompt_tokens BigInt @default(0)
|
|
394
398
|
completion_tokens BigInt @default(0)
|
|
395
399
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -401,11 +405,12 @@ model LiteLLM_DailyTeamSpend {
|
|
|
401
405
|
created_at DateTime @default(now())
|
|
402
406
|
updated_at DateTime @updatedAt
|
|
403
407
|
|
|
404
|
-
@@unique([team_id, date, api_key, model, custom_llm_provider])
|
|
408
|
+
@@unique([team_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
405
409
|
@@index([date])
|
|
406
410
|
@@index([team_id])
|
|
407
411
|
@@index([api_key])
|
|
408
412
|
@@index([model])
|
|
413
|
+
@@index([mcp_namespaced_tool_name])
|
|
409
414
|
}
|
|
410
415
|
|
|
411
416
|
// Track daily team spend metrics per model and key
|
|
@@ -414,9 +419,10 @@ model LiteLLM_DailyTagSpend {
|
|
|
414
419
|
tag String?
|
|
415
420
|
date String
|
|
416
421
|
api_key String
|
|
417
|
-
model String
|
|
422
|
+
model String?
|
|
418
423
|
model_group String?
|
|
419
|
-
custom_llm_provider String?
|
|
424
|
+
custom_llm_provider String?
|
|
425
|
+
mcp_namespaced_tool_name String?
|
|
420
426
|
prompt_tokens BigInt @default(0)
|
|
421
427
|
completion_tokens BigInt @default(0)
|
|
422
428
|
cache_read_input_tokens BigInt @default(0)
|
|
@@ -428,11 +434,12 @@ model LiteLLM_DailyTagSpend {
|
|
|
428
434
|
created_at DateTime @default(now())
|
|
429
435
|
updated_at DateTime @updatedAt
|
|
430
436
|
|
|
431
|
-
@@unique([tag, date, api_key, model, custom_llm_provider])
|
|
437
|
+
@@unique([tag, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
|
|
432
438
|
@@index([date])
|
|
433
439
|
@@index([tag])
|
|
434
440
|
@@index([api_key])
|
|
435
441
|
@@index([model])
|
|
442
|
+
@@index([mcp_namespaced_tool_name])
|
|
436
443
|
}
|
|
437
444
|
|
|
438
445
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "litellm-proxy-extras"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.9"
|
|
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.2.
|
|
25
|
+
version = "0.2.9"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|