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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
style(proxy): mark WindowSpendTransaction fields ReadOnly for the LIT012 gate
ryan-crabbe-berriea5a9f6ef01d
diff --git a/litellm/proxy/db/db_transaction_queue/window_spend_update_queue.py b/litellm/proxy/db/db_transaction_queue/window_spend_update_queue.pyindex 2e7366ce85f..04dea66165e 100644--- a/litellm/proxy/db/db_transaction_queue/window_spend_update_queue.py+++ b/litellm/proxy/db/db_transaction_queue/window_spend_update_queue.py@@ -13,6 +13,8 @@ from datetime import datetime, timezonefrom itertools import chain, groupbyfrom typing import Final, TypedDict+from typing_extensions import ReadOnly+from litellm._logging import verbose_proxy_loggerfrom litellm.constants import LITELLM_ASYNCIO_QUEUE_MAXSIZEfrom litellm.proxy.db.db_transaction_queue.base_update_queue import BaseUpdateQueue@@ -37,13 +39,13 @@ class WindowSpendTransaction(TypedDict):seed drop the historical row that id already paid for."""- entity_type: str- entity_id: str- window_duration: str- window_start: str- spend: float- request_ids: Sequence[str]- started_at: str | None+ entity_type: ReadOnly[str]+ entity_id: ReadOnly[str]+ window_duration: ReadOnly[str]+ window_start: ReadOnly[str]+ spend: ReadOnly[float]+ request_ids: ReadOnly[Sequence[str]]+ started_at: ReadOnly[str | None]def to_naive_utc(value: datetime) -> datetime: