Skip to content

Commit

Permalink
fix(utils.py): fix if check
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Jan 18, 2024
1 parent 6dc39e4 commit 08b409b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion litellm/tests/test_bedrock_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def test_completion_bedrock_claude_2_1_completion_auth():
os.environ.pop("AWS_ACCESS_KEY_ID", None)
os.environ.pop("AWS_SECRET_ACCESS_KEY", None)
os.environ.pop("AWS_REGION_NAME", None)

try:
response = completion(
model="bedrock/anthropic.claude-v2:1",
Expand Down
2 changes: 1 addition & 1 deletion litellm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3198,7 +3198,7 @@ def get_optional_params(
special_params = passed_params.pop("kwargs")
for k, v in special_params.items():
if k.startswith("aws_") and (
custom_llm_provider != "bedrock" or custom_llm_provider != "sagemaker"
custom_llm_provider != "bedrock" and custom_llm_provider != "sagemaker"
): # allow dynamically setting boto3 init logic
continue
passed_params[k] = v
Expand Down

0 comments on commit 08b409b

Please sign in to comment.