tool-call
: ensure there's always a non-empty tool call id (#12292)
This commit is contained in:
parent
87c2630546
commit
be421fc429
3 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue