Skip to content

Do not report plain text as a tool call - #384

Open
SashaMIT wants to merge 1 commit into
OpenBMB:mainfrom
SashaMIT:codered-tool-called
Open

SashaMIT wants to merge 1 commit into
OpenBMB:mainfrom
SashaMIT:codered-tool-called

Conversation

@SashaMIT

Copy link
Copy Markdown

Summary

extract_tool_calls of hello came back with tools_called set. A reply that does not contain a tool call now comes back with the flag clear and an empty call list. get_weather(city="Paris") is still a tool call.

Test plan

  • python -m unittest test_minicpm_tool_parser.py (2 tests). On the old parser, hello had tools_called set.

A reply with no tool call came back with tools_called set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant