From 4ab7562f86d6007c2d0294c83e6cd687d9f34657 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 20 Jun 2026 16:56:41 +0000 Subject: [PATCH] style: use union syntax for control-param field to satisfy strict lint --- litellm/types/llms/bedrock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/llms/bedrock.py b/litellm/types/llms/bedrock.py index 834ec239016..1212ab20993 100644 --- a/litellm/types/llms/bedrock.py +++ b/litellm/types/llms/bedrock.py @@ -13,7 +13,7 @@ class LiteLLMControlParams(BaseModel): govern client-side behavior (e.g. how the HTTP response stream is re-chunked), so Bedrock rejects them as unknown fields.""" - stream_chunk_size: Optional[int] = None + stream_chunk_size: int | None = None LITELLM_CONTROL_PARAM_KEYS = frozenset(LiteLLMControlParams.model_fields)