diff --git a/llama-index-integrations/llms/llama-index-llms-bedrock-converse/llama_index/llms/bedrock_converse/utils.py b/llama-index-integrations/llms/llama-index-llms-bedrock-converse/llama_index/llms/bedrock_converse/utils.py index 2ad32f78003d9..35c5342570e90 100644 --- a/llama-index-integrations/llms/llama-index-llms-bedrock-converse/llama_index/llms/bedrock_converse/utils.py +++ b/llama-index-integrations/llms/llama-index-llms-bedrock-converse/llama_index/llms/bedrock_converse/utils.py @@ -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"] }, ) @@ -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"] }, ) diff --git a/llama-index-integrations/llms/llama-index-llms-bedrock-converse/pyproject.toml b/llama-index-integrations/llms/llama-index-llms-bedrock-converse/pyproject.toml index ab4844f92d8f2..4b9d6b6f07bcf 100644 --- a/llama-index-integrations/llms/llama-index-llms-bedrock-converse/pyproject.toml +++ b/llama-index-integrations/llms/llama-index-llms-bedrock-converse/pyproject.toml @@ -27,7 +27,7 @@ exclude = ["**/BUILD"] license = "MIT" name = "llama-index-llms-bedrock-converse" readme = "README.md" -version = "0.4.2" +version = "0.4.3" [tool.poetry.dependencies] python = ">=3.9,<4.0"