Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Show typewrite effect only on last response
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Feb 1, 2024
1 parent 2b8e70e commit 6d97918
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ const Chat = () => {
</span>
</div>`;

if (ai.busy && role === SessionRole.Model) {
if (
!ai.busy &&
role === SessionRole.Model &&
index === chat.length - 1
) {
parts += `<div class="inline px-1 bg-black animate-pulse animate-duration-700"></div>`;
}
return (
Expand Down

0 comments on commit 6d97918

Please sign in to comment.