Skip to content

Commit

Permalink
Merge commit 'f1985bb23d7be90e9d8592492a8088e1b3348f4e' into xw/mem-leak
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyaoww committed Feb 11, 2025
2 parents fc56181 + f1985bb commit a9f2c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openhands/agenthub/codeact_agent/function_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@ def response_to_actions(response: ModelResponse) -> list[Action]:
view_range=other_kwargs.get('view_range', None),
)
else:
other_kwargs.pop(
'view_range'
) # Remove view_range from other_kwargs since it is not needed for FileEditAction
if 'view_range' in other_kwargs:
# Remove view_range from other_kwargs since it is not needed for FileEditAction
other_kwargs.pop('view_range')
action = FileEditAction(
path=path,
command=command,
Expand Down

0 comments on commit a9f2c59

Please sign in to comment.