mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-20 01:09:57 +00:00
updated lite
This commit is contained in:
parent
7a2fb8ec7c
commit
bb48a9a13b
1 changed files with 7 additions and 2 deletions
|
|
@ -8238,8 +8238,13 @@ Current version indicated by LITEVER below.
|
|||
}).then(function (response) {
|
||||
if(response.content && response.content.length>0)
|
||||
{
|
||||
let tgt = replaceStringsInObject(response.content[0],""","\""); //we must remove existing escaped quotes or things break later
|
||||
callresp.content = JSON.stringify(tgt);
|
||||
let outitems = [];
|
||||
for(let i=0;i<response.content.length;++i)
|
||||
{
|
||||
let tgt = replaceStringsInObject(response.content[i], """, "\""); //we must remove existing escaped quotes or things break later
|
||||
outitems.push(tgt);
|
||||
}
|
||||
callresp.content = JSON.stringify(outitems);
|
||||
}
|
||||
callresptxt += JSON.stringify(callresp);
|
||||
if(toolcall_obj.tool_calls.length < 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue