tool-call: ensure there's always a non-empty tool call id (#12292)

This commit is contained in:
Olivier Chafik
2025-03-10 09:45:29 +00:00
committed by GitHub
parent 87c2630546
commit be421fc429
3 changed files with 11 additions and 1 deletions

View File

@ -435,6 +435,10 @@ static std::string gen_chatcmplid() {
return "chatcmpl-" + random_string();
}
static std::string gen_tool_call_id() {
return random_string();
}
//
// other common utils
//