fix regenerate
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user