Skip to content

Commit

Permalink
Fix: HandleRegenerate fix for messages not containing img description.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-uiuc committed Dec 8, 2023
1 parent 32e55e8 commit 4f946f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,8 @@ export const Chat = memo(({ stopConversationRef, courseMetadata }: Props) => {
// Remove the existing image description
(currentMessage.content as Content[]).splice(imgDescIndex, 1);
}

handleSend(currentMessage, 2, null);
}
handleSend(currentMessage as Message, 2, null);
}, [currentMessage, handleSend]);

const scrollToBottom = useCallback(() => {
Expand Down

0 comments on commit 4f946f1

Please sign in to comment.