fix regenerate
This commit is contained in:
parent
3ca503a3f2
commit
a1743c82cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue