SimpleChatTC: Show toolcall being generated by ai - Temp

This commit is contained in:
hanishkvc 2025-10-11 02:58:03 +05:30
parent e73bc4550b
commit 5a26831ad2
1 changed files with 5 additions and 1 deletions

View File

@ -443,7 +443,11 @@ class SimpleChat {
console.debug("DBUG:SC:PART:Json:", curJson);
this.append_response(this.response_extract_stream(curJson, apiEP));
}
elP.innerText = this.latestResponse.content;
if (this.latestResponse.content !== "") {
elP.innerText = this.latestResponse.content;
} else {
elP.innerText = `ToolCall:${this.latestResponse.toolname}:${this.latestResponse.toolargs}`;
}
elP.scrollIntoView(false);
if (done) {
break;