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(deps): ship boto3 with the base SDK so bedrock works out of the box (#36568)

mubashir1osmani19c914066ba7
diff --git a/pyproject.toml b/pyproject.toml
index 35fd949c2e0..f127e9d64af 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,6 +27,7 @@ dependencies = [
"pydantic>=2.10.0,<3.0.0",
"pydantic-settings>=2.14.1,<3.0",
"jsonschema>=4.0.0,<5.0",
+ "boto3>=1.43.1,<2.0",
]
[project.urls]
diff --git a/tests/base_sdk_tests/check_base_sdk_install.py b/tests/base_sdk_tests/check_base_sdk_install.py
index f3a4f2c0454..723f30cad76 100644
--- a/tests/base_sdk_tests/check_base_sdk_install.py
+++ b/tests/base_sdk_tests/check_base_sdk_install.py
@@ -11,7 +11,7 @@ import sys
import traceback
from collections.abc import Callable
-EXTRAS_ONLY_MODULES = ("fastapi", "boto3", "uvicorn")
+EXTRAS_ONLY_MODULES = ("fastapi", "uvicorn")
def _require(condition: bool, message: str) -> None:
@@ -86,6 +86,26 @@ def check_token_counter() -> str:
return f"token_counter returned {count}"
+def check_bedrock_credential_resolution() -> str:
+ import os
+ from unittest import mock
+
+ from litellm.llms.bedrock.base_aws_llm import BaseAWSLLM
+
+ non_aws_environ = {k: v for k, v in os.environ.items() if not k.startswith("AWS_")}
+ with mock.patch.dict(os.environ, non_aws_environ, clear=True):
+ credentials = BaseAWSLLM().get_credentials(
+ aws_access_key_id="AKIA-fake-base-sdk-check",
+ aws_secret_access_key="fake-secret",
+ aws_region_name="us-east-1",
+ )
+ _require(
+ credentials.access_key == "AKIA-fake-base-sdk-check",
+ f"get_credentials returned access_key={credentials.access_key!r}",
+ )
+ return "bedrock credential resolution works (boto3 ships with the base SDK)"
+
+
CHECKS: tuple[tuple[str, Callable[[], str]], ...] = (
("environment is base-only", check_environment_is_base_only),
("import litellm", check_import),
@@ -93,6 +113,7 @@ CHECKS: tuple[tuple[str, Callable[[], str]], ...] = (
("embedding", check_embedding),
("bundled model metadata", check_bundled_model_metadata),
("token counter", check_token_counter),
+ ("bedrock credential resolution", check_bedrock_credential_resolution),
)
diff --git a/uv.lock b/uv.lock
index 381ca7aed1c..365d6afaebd 100644
--- a/uv.lock
+++ b/uv.lock
@@ -10,7 +10,7 @@ resolution-markers = [
]
[options]
-exclude-newer = "2026-08-06T13:09:00.574651711Z"
+exclude-newer = "2026-08-08T19:31:43.729157Z"
exclude-newer-span = "P3D"
[manifest]
@@ -4198,6 +4198,7 @@ version = "1.97.0"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
+ { name = "boto3" },
{ name = "click" },
{ name = "fastuuid" },
{ name = "httpx" },
@@ -4418,6 +4419,7 @@ requires-dist = [
{ name = "azure-storage-blob", marker = "extra == 'proxy'", specifier = ">=12.28.0,<13.0" },
{ name = "azure-storage-file-datalake", marker = "extra == 'proxy-runtime'", specifier = ">=12.20.0,<13.0" },
{ name = "backoff", marker = "extra == 'proxy'", specifier = ">=2.2.1,<3.0" },
+ { name = "boto3", specifier = ">=1.43.1,<2.0" },
{ name = "boto3", marker = "extra == 'proxy'", specifier = ">=1.43.1,<2.0" },
{ name = "click", specifier = ">=8.0.0,<9.0" },
{ name = "cryptography", marker = "extra == 'proxy'", specifier = ">=49.0.0,<51.0" },