mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix streaming message rendering, add state for awaiting tool response
This commit is contained in:
8 files changed
+83
-46
No files matched your search
@@ -66,11 +66,7 @@ export function useAIChat({
|
||||
setMessages(prev => [...prev, message]);
|
||||
// Whenever an assistant message is added, it means streaming is done (until we get another streamingUpdate)
|
||||
if (message.role === 'assistant') {
|
||||
setStreamingMessage({
|
||||
role: 'assistant',
|
||||
content: '',
|
||||
reasoning_content: '',
|
||||
});
|
||||
setStreamingMessage(undefined);
|
||||
}
|
||||
}
|
||||
}, [projectId]);
|
||||
|
||||
Reference in new issue
Block a user