fix regenerate

This commit is contained in:
Mckay Wrigley 2023-03-27 07:48:51 -06:00
parent 3ca503a3f2
commit a1743c82cc
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ export const Chat: FC<Props> = memo(
stopConversationRef={stopConversationRef}
textareaRef={textareaRef}
messageIsStreaming={messageIsStreaming}
conversationIsEmpty={conversation.messages.length > 0}
conversationIsEmpty={conversation.messages.length === 0}
model={conversation.model}
onSend={(message) => {
setCurrentMessage(message);

View File

@ -1,5 +1,6 @@
import { Message, OpenAIModel, OpenAIModelID } from '@/types';
import { IconPlayerStop, IconRepeat, IconSend } from '@tabler/icons-react';
import { useTranslation } from 'next-i18next';
import {
FC,
KeyboardEvent,
@ -7,7 +8,6 @@ import {
useEffect,
useState,
} from 'react';
import { useTranslation } from 'next-i18next';
interface Props {
messageIsStreaming: boolean;