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 linting error

Ishaan Jaff795a71ce1e3c
diff --git a/litellm/llms/bedrock/chat/invoke_handler.py b/litellm/llms/bedrock/chat/invoke_handler.py
index 59d9917aa29..00987ae6a88 100644
--- a/litellm/llms/bedrock/chat/invoke_handler.py
+++ b/litellm/llms/bedrock/chat/invoke_handler.py
@@ -311,7 +311,7 @@ class BedrockLLM(BaseAWSLLM):
model: str,
response: httpx.Response,
model_response: ModelResponse,
- stream: bool,
+ stream: Optional[bool],
logging_obj: Logging,
optional_params: dict,
api_key: str,