Skip to content

Commit

Permalink
fix #17317: corrected condition to include tools in boto3 client for …
Browse files Browse the repository at this point in the history
…Bedrock
  • Loading branch information
Samuel CHNIBER committed Dec 24, 2024
1 parent cbec20b commit 139f1d4
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,7 @@ def converse_with_retry(
{
k: v
for k, v in kwargs.items()
if (
k != "tools"
or k != "guardrail_identifier"
or k != "guardrail_version"
or k != "trace"
)
if k not in ["tools", "guardrail_identifier", "guardrail_version", "trace"]
},
)

Expand Down Expand Up @@ -395,12 +390,7 @@ async def converse_with_retry_async(
{
k: v
for k, v in kwargs.items()
if (
k != "tools"
or k != "guardrail_identifier"
or k != "guardrail_version"
or k != "trace"
)
if k not in ["tools", "guardrail_identifier", "guardrail_version", "trace"]
},
)

Expand Down

0 comments on commit 139f1d4

Please sign in to comment.