fix: prompt caching, conversation length management and token usage display
This commit is contained in:
@@ -283,6 +283,11 @@ export function registerChatHandlers(): void {
|
||||
mainWindow.webContents.send('a2ui-message', { conversationId, message });
|
||||
}
|
||||
},
|
||||
onTokenUsage: (usage) => {
|
||||
if (mainWindow) {
|
||||
mainWindow.webContents.send('chat-token-usage', { conversationId, ...usage });
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user