Update tool-call.cpp
This commit is contained in:
parent
a4226365bf
commit
cce1166b37
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ static common_chat_msg parse_llama_3_tool_calls(const json & tools, const std::s
|
||||||
std::smatch match;
|
std::smatch match;
|
||||||
if (std::regex_search(input, match, python_tag_regex)) {
|
if (std::regex_search(input, match, python_tag_regex)) {
|
||||||
return {
|
return {
|
||||||
/* .role = */ "assistant",
|
/* .role = */ "assistant",
|
||||||
/* .content = */ match.prefix().str(),
|
/* .content = */ match.prefix().str(),
|
||||||
/* .tool_calls = */ {
|
/* .tool_calls = */ {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue