Add class to tool call messages

This commit is contained in:
Cohee 2024-10-05 02:05:18 +03:00
parent 68376f7dd0
commit 0637223bc2
1 changed files with 4 additions and 0 deletions

View File

@ -2328,6 +2328,10 @@ export function addOneMessage(mes, { type = 'normal', insertAfter = null, scroll
newMessage.addClass('smallSysMes');
}
if (Array.isArray(mes?.extra?.tool_invocations)) {
newMessage.addClass('toolCall');
}
//shows or hides the Prompt display button
let mesIdToFind = type == 'swipe' ? params.mesId - 1 : params.mesId; //Number(newMessage.attr('mesId'));