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
refactor(model_armor): type the buffered stream chunks as object
mateo4e9c6b5dd436
diff --git a/basedpyright-code-budget.json b/basedpyright-code-budget.jsonindex 2967fc2a505..45a3856d246 100644--- a/basedpyright-code-budget.json+++ b/basedpyright-code-budget.json@@ -24,7 +24,7 @@"limit": 19},"reportExplicitAny": {- "limit": 4124+ "limit": 4123},"reportFunctionMemberAccess": {"limit": 7diff --git a/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py b/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.pyindex f0de6ee0ac7..4a60f092bfb 100644--- a/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py+++ b/litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py@@ -1095,7 +1095,7 @@ class ModelArmorGuardrail(CustomGuardrail, VertexBase):add_guardrail_to_applied_guardrails_header,)- all_chunks: Final[Sequence[Any]] = tuple([chunk async for chunk in response])+ all_chunks: Final[Sequence[object]] = tuple([chunk async for chunk in response])if not all_chunks or self._is_terminal_error_stream(all_chunks):for chunk in all_chunks:diff --git a/type-discipline-budget.json b/type-discipline-budget.jsonindex 704d7e8a596..972bc3315f2 100644--- a/type-discipline-budget.json+++ b/type-discipline-budget.json@@ -1,9 +1,9 @@{"LIT001": {- "limit": 22329+ "limit": 22328},"LIT002": {- "limit": 26762+ "limit": 26761},"LIT003": {"limit": 261