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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_bedrock_aws_session_tags
ryan-crabbe-berri3ddb92002887
diff --cc litellm/llms/bedrock/base_aws_llm.pyindex ab6c4ab85d6,96804a1fa62..f52c1cec6a8--- a/litellm/llms/bedrock/base_aws_llm.py+++ b/litellm/llms/bedrock/base_aws_llm.py@@@ -4,14 -6,15 +6,16 @@@ import jsoimport osimport reimport urllib.parse-from collections.abc import Callable, Mapping+from collections.abc import Callable, Mapping, Sequence+ from concurrent.futures import ThreadPoolExecutorfrom datetime import datetime+ from functools import partialfrom threading import Lock- from typing import TYPE_CHECKING, Any, ClassVar, Final, Literal, cast, get_args, overload+ from typing import TYPE_CHECKING, Any, ClassVar, Final, Literal, ParamSpec, TypeVar, cast, get_args, overloadimport httpx-from pydantic import BaseModel, ValidationError+from pydantic import BaseModel, TypeAdapter, ValidationError+from typing_extensions import NotRequired, ReadOnly, TypedDictfrom litellm._logging import verbose_loggerfrom litellm.caching.caching import DualCachediff --cc tests/test_litellm/llms/bedrock/chat/test_bedrock_converse_handler.pyindex 92bd6d48aae,8831fd9061c..4c2aa4ec4cf--- a/tests/test_litellm/llms/bedrock/chat/test_bedrock_converse_handler.py+++ b/tests/test_litellm/llms/bedrock/chat/test_bedrock_converse_handler.py@@@ -6,10 -6,9 +6,11 @@@ extension, and AWS credential resolutiofrom __future__ import annotations+ import asyncio+from datetime import datetime, timedelta, timezonefrom unittest.mock import MagicMock, patch+import boto3import httpximport pytest