litellm-proxy-extras 0.1.9__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.
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/PKG-INFO +1 -1
- litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +45 -0
- litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +3 -0
- litellm_proxy_extras-0.1.10/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +3 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/schema.prisma +55 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/pyproject.toml +2 -2
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/LICENSE +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/README.md +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/__init__.py +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/_logging.py +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
- {litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/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.1.
|
|
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.*
|
|
@@ -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
|
+
|
{litellm_proxy_extras-0.1.9 → litellm_proxy_extras-0.1.10}/litellm_proxy_extras/schema.prisma
RENAMED
|
@@ -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?
|
|
@@ -342,6 +343,60 @@ model LiteLLM_DailyUserSpend {
|
|
|
342
343
|
@@index([model])
|
|
343
344
|
}
|
|
344
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
|
+
|
|
345
400
|
|
|
346
401
|
// Track the status of cron jobs running. Only allow one pod to run the job at a time
|
|
347
402
|
model LiteLLM_CronJob {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "litellm-proxy-extras"
|
|
3
|
-
version = "0.1.
|
|
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.
|
|
25
|
+
version = "0.1.10"
|
|
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
|