fix: split combined statement in tool.completed
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 7s
This commit is contained in:
parent
62b4963bb8
commit
085d65d05d
@ -89,7 +89,10 @@ function ChatPage() {
|
|||||||
update({ toolCalls: [...currentTools] })
|
update({ toolCalls: [...currentTools] })
|
||||||
break
|
break
|
||||||
case 'tool.completed': {
|
case 'tool.completed': {
|
||||||
const i = currentTools.findIndex((t: any) => t.tool === event.tool && !t.done); if (i >= 0) { currentTools[i] = { ...currentTools[i], done: true, duration: event.duration, error: event.error }; update({ toolCalls: [...currentTools] })
|
const i = currentTools.findIndex((t: any) => t.tool === event.tool && !t.done); if (i >= 0) {
|
||||||
|
currentTools[i] = { ...currentTools[i], done: true, duration: event.duration, error: event.error }
|
||||||
|
update({ toolCalls: [...currentTools] })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'approval.request':
|
case 'approval.request':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user