mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-24 06:18:04 -05:00
Compare commits
1 Commits
fix/nested
...
fix/copilo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4af35e03ea |
@@ -1125,6 +1125,17 @@ const sseHandlers: Record<string, SSEHandler> = {
|
||||
await get().handleNewChatCreation(context.newChatId)
|
||||
}
|
||||
},
|
||||
title_updated: (_data, _context, get, set) => {
|
||||
const title = _data.title
|
||||
if (!title) return
|
||||
const { currentChat, chats } = get()
|
||||
if (currentChat) {
|
||||
set({
|
||||
currentChat: { ...currentChat, title },
|
||||
chats: chats.map((c) => (c.id === currentChat.id ? { ...c, title } : c)),
|
||||
})
|
||||
}
|
||||
},
|
||||
tool_result: (data, context, get, set) => {
|
||||
try {
|
||||
const toolCallId: string | undefined = data?.toolCallId || data?.data?.id
|
||||
|
||||
Reference in New Issue
Block a user