mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 06:48:02 -05:00
replace erroneous rstrip() with removesuffix() (#8024)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user