Skip to content

Commit

Permalink
Fix: skip start_token (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiangning30 committed Feb 2, 2024
1 parent 3be9ec0 commit a2c23ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lagent/agents/internlm2_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def parse(self, message, plugin_executor: ActionExecutor,
return 'interpreter', message, dict(
name=interpreter_executor.action_names()[0],
parameters=dict(command=code))
return None, message, None
return None, message.split(self.tool['start_token'])[0], None

def format_response(self, action_return, name) -> dict:
if action_return.state == ActionStatusCode.SUCCESS:
Expand Down

0 comments on commit a2c23ef

Please sign in to comment.