Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(db_scripts): pin the tool spend backfill session to UTC

Tin Chi Loa87754d7fc6d
diff --git a/db_scripts/backfill_daily_tool_spend.sql b/db_scripts/backfill_daily_tool_spend.sql
index 358ebf1f23f..309b9dbe0ff 100644
--- a/db_scripts/backfill_daily_tool_spend.sql
+++ b/db_scripts/backfill_daily_tool_spend.sql
@@ -28,6 +28,8 @@
-- Usage:
-- psql "$DATABASE_URL" -v cutover="'2026-07-25T00:00:00Z'" -f db_scripts/backfill_daily_tool_spend.sql
+SET TIME ZONE 'UTC';
+
INSERT INTO "LiteLLM_DailyToolSpend" (date, tool_name, spend, total_tokens, request_count, created_at, updated_at)
SELECT
to_char(ti.start_time, 'YYYY-MM-DD') AS date,