mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
replace erroneous rstrip() with removesuffix() (#8024)
This commit is contained in:
parent
693c72d670
commit
5d749aeba7
@ -199,7 +199,7 @@ def response_to_actions(response: ModelResponse) -> list[Action]:
|
||||
# ================================================
|
||||
elif tool_call.function.name.endswith(MCPClientTool.postfix()):
|
||||
action = McpAction(
|
||||
name=tool_call.function.name.rstrip(MCPClientTool.postfix()),
|
||||
name=tool_call.function.name.removesuffix(MCPClientTool.postfix()),
|
||||
arguments=tool_call.function.arguments,
|
||||
)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user