Skip to content

Commit 9502b01

Browse files
committed
fix(FR-1772): add throttle to reduce lag in chat rendering
1 parent 7317730 commit 9502b01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

react/src/components/Chat/ChatCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ const PureChatCard: React.FC<ChatCardProps> = ({
240240
const [input, setInput] = useState('');
241241

242242
const { error, messages, stop, status, sendMessage, setMessages } = useChat({
243+
experimental_throttle: 100,
243244
messages: chat.messages,
244245
onFinish: () => {
245246
setStartTime(null);

0 commit comments

Comments
 (0)