fix regenerate
This commit is contained in:
		
							parent
							
								
									3ca503a3f2
								
							
						
					
					
						commit
						a1743c82cc
					
				|  | @ -240,7 +240,7 @@ export const Chat: FC<Props> = memo( | ||||||
|               stopConversationRef={stopConversationRef} |               stopConversationRef={stopConversationRef} | ||||||
|               textareaRef={textareaRef} |               textareaRef={textareaRef} | ||||||
|               messageIsStreaming={messageIsStreaming} |               messageIsStreaming={messageIsStreaming} | ||||||
|               conversationIsEmpty={conversation.messages.length > 0} |               conversationIsEmpty={conversation.messages.length === 0} | ||||||
|               model={conversation.model} |               model={conversation.model} | ||||||
|               onSend={(message) => { |               onSend={(message) => { | ||||||
|                 setCurrentMessage(message); |                 setCurrentMessage(message); | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| import { Message, OpenAIModel, OpenAIModelID } from '@/types'; | import { Message, OpenAIModel, OpenAIModelID } from '@/types'; | ||||||
| import { IconPlayerStop, IconRepeat, IconSend } from '@tabler/icons-react'; | import { IconPlayerStop, IconRepeat, IconSend } from '@tabler/icons-react'; | ||||||
|  | import { useTranslation } from 'next-i18next'; | ||||||
| import { | import { | ||||||
|   FC, |   FC, | ||||||
|   KeyboardEvent, |   KeyboardEvent, | ||||||
|  | @ -7,7 +8,6 @@ import { | ||||||
|   useEffect, |   useEffect, | ||||||
|   useState, |   useState, | ||||||
| } from 'react'; | } from 'react'; | ||||||
| import { useTranslation } from 'next-i18next'; |  | ||||||
| 
 | 
 | ||||||
| interface Props { | interface Props { | ||||||
|   messageIsStreaming: boolean; |   messageIsStreaming: boolean; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue