litellm-proxy-extras 0.1.8__tar.gz → 0.1.10__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.

Files changed (21) hide show
  1. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/PKG-INFO +3 -2
  2. litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +4 -0
  3. litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +45 -0
  4. litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +3 -0
  5. litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +3 -0
  6. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/schema.prisma +57 -0
  7. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/pyproject.toml +2 -2
  8. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/LICENSE +0 -0
  9. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/README.md +0 -0
  10. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/__init__.py +0 -0
  11. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/_logging.py +0 -0
  12. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
  13. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
  14. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
  15. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
  16. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
  17. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
  18. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
  19. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
  20. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
  21. {litellm_proxy_extras-0.1.8 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: litellm-proxy-extras
3
- Version: 0.1.8
3
+ Version: 0.1.10
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,6 +9,7 @@ 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
12
13
  Project-URL: Documentation, https://docs.litellm.ai
13
14
  Project-URL: Homepage, https://litellm.ai
14
15
  Project-URL: Repository, https://github.com/BerriAI/litellm
@@ -0,0 +1,4 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_DailyUserSpend" ADD COLUMN "cache_creation_input_tokens" INTEGER NOT NULL DEFAULT 0,
3
+ ADD COLUMN "cache_read_input_tokens" INTEGER NOT NULL DEFAULT 0;
4
+
@@ -0,0 +1,45 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_DailyTeamSpend" ADD COLUMN "cache_creation_input_tokens" INTEGER NOT NULL DEFAULT 0,
3
+ ADD COLUMN "cache_read_input_tokens" INTEGER NOT NULL DEFAULT 0;
4
+
5
+ -- CreateTable
6
+ CREATE TABLE "LiteLLM_DailyTagSpend" (
7
+ "id" TEXT NOT NULL,
8
+ "tag" TEXT NOT NULL,
9
+ "date" TEXT NOT NULL,
10
+ "api_key" TEXT NOT NULL,
11
+ "model" TEXT NOT NULL,
12
+ "model_group" TEXT,
13
+ "custom_llm_provider" TEXT,
14
+ "prompt_tokens" INTEGER NOT NULL DEFAULT 0,
15
+ "completion_tokens" INTEGER NOT NULL DEFAULT 0,
16
+ "cache_read_input_tokens" INTEGER NOT NULL DEFAULT 0,
17
+ "cache_creation_input_tokens" INTEGER NOT NULL DEFAULT 0,
18
+ "spend" DOUBLE PRECISION NOT NULL DEFAULT 0.0,
19
+ "api_requests" INTEGER NOT NULL DEFAULT 0,
20
+ "successful_requests" INTEGER NOT NULL DEFAULT 0,
21
+ "failed_requests" INTEGER NOT NULL DEFAULT 0,
22
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
23
+ "updated_at" TIMESTAMP(3) NOT NULL,
24
+
25
+ CONSTRAINT "LiteLLM_DailyTagSpend_pkey" PRIMARY KEY ("id")
26
+ );
27
+
28
+ -- CreateIndex
29
+ CREATE UNIQUE INDEX "LiteLLM_DailyTagSpend_tag_key" ON "LiteLLM_DailyTagSpend"("tag");
30
+
31
+ -- CreateIndex
32
+ CREATE INDEX "LiteLLM_DailyTagSpend_date_idx" ON "LiteLLM_DailyTagSpend"("date");
33
+
34
+ -- CreateIndex
35
+ CREATE INDEX "LiteLLM_DailyTagSpend_tag_idx" ON "LiteLLM_DailyTagSpend"("tag");
36
+
37
+ -- CreateIndex
38
+ CREATE INDEX "LiteLLM_DailyTagSpend_api_key_idx" ON "LiteLLM_DailyTagSpend"("api_key");
39
+
40
+ -- CreateIndex
41
+ CREATE INDEX "LiteLLM_DailyTagSpend_model_idx" ON "LiteLLM_DailyTagSpend"("model");
42
+
43
+ -- CreateIndex
44
+ 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");
45
+
@@ -0,0 +1,3 @@
1
+ -- DropIndex
2
+ DROP INDEX "LiteLLM_DailyTagSpend_tag_key";
3
+
@@ -0,0 +1,3 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_VerificationToken" ADD COLUMN "allowed_routes" TEXT[] DEFAULT ARRAY[]::TEXT[];
3
+
@@ -169,6 +169,7 @@ model LiteLLM_VerificationToken {
169
169
  budget_duration String?
170
170
  budget_reset_at DateTime?
171
171
  allowed_cache_controls String[] @default([])
172
+ allowed_routes String[] @default([])
172
173
  model_spend Json @default("{}")
173
174
  model_max_budget Json @default("{}")
174
175
  budget_id String?
@@ -326,6 +327,8 @@ model LiteLLM_DailyUserSpend {
326
327
  custom_llm_provider String?
327
328
  prompt_tokens Int @default(0)
328
329
  completion_tokens Int @default(0)
330
+ cache_read_input_tokens Int @default(0)
331
+ cache_creation_input_tokens Int @default(0)
329
332
  spend Float @default(0.0)
330
333
  api_requests Int @default(0)
331
334
  successful_requests Int @default(0)
@@ -340,6 +343,60 @@ model LiteLLM_DailyUserSpend {
340
343
  @@index([model])
341
344
  }
342
345
 
346
+ // Track daily team spend metrics per model and key
347
+ model LiteLLM_DailyTeamSpend {
348
+ id String @id @default(uuid())
349
+ team_id String
350
+ date String
351
+ api_key String
352
+ model String
353
+ model_group String?
354
+ custom_llm_provider String?
355
+ prompt_tokens Int @default(0)
356
+ completion_tokens Int @default(0)
357
+ cache_read_input_tokens Int @default(0)
358
+ cache_creation_input_tokens Int @default(0)
359
+ spend Float @default(0.0)
360
+ api_requests Int @default(0)
361
+ successful_requests Int @default(0)
362
+ failed_requests Int @default(0)
363
+ created_at DateTime @default(now())
364
+ updated_at DateTime @updatedAt
365
+
366
+ @@unique([team_id, date, api_key, model, custom_llm_provider])
367
+ @@index([date])
368
+ @@index([team_id])
369
+ @@index([api_key])
370
+ @@index([model])
371
+ }
372
+
373
+ // Track daily team spend metrics per model and key
374
+ model LiteLLM_DailyTagSpend {
375
+ id String @id @default(uuid())
376
+ tag String
377
+ date String
378
+ api_key String
379
+ model String
380
+ model_group String?
381
+ custom_llm_provider String?
382
+ prompt_tokens Int @default(0)
383
+ completion_tokens Int @default(0)
384
+ cache_read_input_tokens Int @default(0)
385
+ cache_creation_input_tokens Int @default(0)
386
+ spend Float @default(0.0)
387
+ api_requests Int @default(0)
388
+ successful_requests Int @default(0)
389
+ failed_requests Int @default(0)
390
+ created_at DateTime @default(now())
391
+ updated_at DateTime @updatedAt
392
+
393
+ @@unique([tag, date, api_key, model, custom_llm_provider])
394
+ @@index([date])
395
+ @@index([tag])
396
+ @@index([api_key])
397
+ @@index([model])
398
+ }
399
+
343
400
 
344
401
  // Track the status of cron jobs running. Only allow one pod to run the job at a time
345
402
  model LiteLLM_CronJob {
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "litellm-proxy-extras"
3
- version = "0.1.8"
3
+ version = "0.1.10"
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.8"
25
+ version = "0.1.10"
26
26
  version_files = [
27
27
  "pyproject.toml:version",
28
28
  "../requirements.txt:litellm-proxy-extras==",