Skip to content

Commit

Permalink
Remove 0 lines in Chat.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AtlantisPleb committed Aug 27, 2024
1 parent 1aeafd8 commit 572d3d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panes/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const Chat = ({ threadId, className }: ChatProps) => {
messages,
sendMessage,
isLoading,
stopGenerating
} = useChat({ propsId: threadId })
const chatContainerRef = useChatScroll(messages);

Expand All @@ -25,9 +26,9 @@ export const Chat = ({ threadId, className }: ChatProps) => {
</div>
<div className="flex-shrink-0 w-full">
<div className="sticky bottom-0 w-full">
<InputBar onSubmit={sendMessage} isLoading={isLoading} />
<InputBar onSubmit={sendMessage} isLoading={isLoading} onStop={stopGenerating} />
</div>
</div>
</div>
)
}
}

0 comments on commit 572d3d6

Please sign in to comment.