Fix thread state not resetting

This commit is contained in:
Tat Dat Duong
2025-03-04 13:55:37 +01:00
parent 97c1f4ca5d
commit 49c4f5a040

View File

@@ -29,7 +29,7 @@ export const StreamProvider: React.FC<{ children: ReactNode }> = ({
const streamValue = useTypedStream({ const streamValue = useTypedStream({
apiUrl: "http://localhost:2024", apiUrl: "http://localhost:2024",
assistantId: "agent", assistantId: "agent",
threadId, threadId: threadId ?? null,
onThreadId: setThreadId, onThreadId: setThreadId,
}); });