Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge pull request #35738 from BerriAI/litellm_bedrock_tool_choice_parallel_conflict

Mateo Wang27885076e774
diff --cc litellm/llms/bedrock/chat/converse_transformation.py
index d5f0ac32ff4,4d5e6fdfe5f..91adff50a17
--- a/litellm/llms/bedrock/chat/converse_transformation.py
+++ b/litellm/llms/bedrock/chat/converse_transformation.py
@@@ -1569,8 -1583,9 +1583,9 @@@ class AmazonConverseConfig(BaseConfig)
)
if tool_choice_values is not None:
bedrock_tool_config["toolChoice"] = tool_choice_values
+ self._drop_tool_choice_type_conflicting_with_tool_config(additional_request_params)
- data: CommonRequestObject = {
+ data: Final[CommonRequestObject] = {
"inferenceConfig": self._transform_inference_params(inference_params=inference_params),
}
if additional_request_params: