Skip to content

Commit

Permalink
Use get
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 14, 2025
1 parent 6be5e00 commit 652b6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhands/agenthub/codeact_agent/function_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def response_to_actions(response: ModelResponse) -> list[Action]:
f'TOOL CALL: str_replace_editor -> file_editor with code: {code}'
)

if arguments['command'] == 'view':
if arguments.get('command') == 'view':
action = FileReadAction(
path=arguments['path'],
translated_ipython_code=code,
Expand Down

0 comments on commit 652b6c0

Please sign in to comment.