Skip to content

Commit 4998d0a

Browse files
committed
Fixes some typos found during testing
1 parent cbfbde4 commit 4998d0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/aws/langchain_aws/chat_models/bedrock_converse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ def _converse_params(
468468
if not toolConfig and tools:
469469
toolChoice = _format_tool_choice(toolChoice) if toolChoice else None
470470
toolConfig = {"tools": _format_tools(tools), "toolChoice": toolChoice}
471-
472471
return _drop_none(
473472
{
474473
"modelId": modelId or self.model_id,
@@ -667,7 +666,7 @@ def _anthropic_to_bedrock(
667666
bedrock_content.append(
668667
{
669668
"toolResult": {
670-
"toolUseId": block["toolUseId"],
669+
"toolUseId": block["tool_use_id"],
671670
"content": _anthropic_to_bedrock(content),
672671
}
673672
}

0 commit comments

Comments
 (0)