Skip to content

Commit 379bc68

Browse files
committed
save
1 parent 94597a1 commit 379bc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llm/io_processing/mistral/tool_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void MistralToolParser::parse(ParsedOutput& parsedOutput, const std::vector<int6
6969
continue;
7070
}
7171
ToolCall toolCall;
72-
toolCall.id = generateRandomId(); // Generate a random ID for the tool call
7372
if (toolVal.HasMember("name") && toolVal["name"].IsString()) {
7473
toolCall.name = toolVal["name"].GetString();
7574
} else {
@@ -86,6 +85,7 @@ void MistralToolParser::parse(ParsedOutput& parsedOutput, const std::vector<int6
8685
SPDLOG_LOGGER_DEBUG(llm_calculator_logger, "Tool call does not contain valid parameters object");
8786
continue;
8887
}
88+
toolCall.id = generateRandomId(); // Generate a random ID for the tool call
8989
parsedOutput.toolCalls.push_back(toolCall);
9090
}
9191
parsedOutput.content = remaining;

0 commit comments

Comments
 (0)