Skip to content

Commit

Permalink
replace token 'plugin' to 'interpreter' during code generation (Inter…
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiangning30 authored Jul 30, 2024
1 parent 9c84da6 commit 6a31d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mindsearch/agent/mindsearch_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def stream_chat(self, message, **kwargs):
model_state.name)
yield deepcopy(agent_return)
return
response = response.replace('<|plugin|>', '<|interpreter|>')
_, language, action = self._protocol.parse(response)
if not language and not action:
continue
Expand Down

0 comments on commit 6a31d2b

Please sign in to comment.