mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Merge 070320e94c into 74050e03c5
This commit is contained in:
commit
92dee11529
2 changed files with 12 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ OPTIONAL_KWARGS_KEYS: Final = (
|
|||
"azure_scope",
|
||||
"timeout",
|
||||
"gcs_bucket_name",
|
||||
"s3_bucket_name",
|
||||
"bucket_name",
|
||||
"vertex_credentials",
|
||||
"vertex_project",
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue