This commit is contained in:
Vojtech Rysanek 2026-08-27 19:58:52 -05:00 committed by GitHub
commit 92dee11529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -43,6 +43,7 @@ OPTIONAL_KWARGS_KEYS: Final = (
"azure_scope",
"timeout",
"gcs_bucket_name",
"s3_bucket_name",
"bucket_name",
"vertex_credentials",
"vertex_project",

View file

@ -73,6 +73,17 @@ class TestGetLitellmParamsKwargsExtraction:
for key in _OPTIONAL_KWARGS_KEYS:
assert result[key] == f"val_{key}"
def test_s3_bucket_name_survives_extraction(self):
"""s3_bucket_name reaches litellm_params, like its gcs_bucket_name counterpart.
Bedrock file retrieval resolves the bucket from litellm_params or the
AWS_S3_BUCKET_NAME environment variable. Dropping the key here left the
environment variable as the only way to configure it.
"""
result = get_litellm_params(s3_bucket_name="my-bucket", gcs_bucket_name="my-gcs-bucket")
assert result["s3_bucket_name"] == "my-bucket"
assert result["gcs_bucket_name"] == "my-gcs-bucket"
class TestGetLitellmParamsBaseModel:
"""Verify base_model resolution precedence."""