Commit baaca2c8 authored by 金伟强's avatar 金伟强

fix: not async log thought

parent e828217c
...@@ -196,6 +196,9 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba ...@@ -196,6 +196,9 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
<div className='text-xs text-gray-500'>{t('appDebug.openingStatement.title')}</div> <div className='text-xs text-gray-500'>{t('appDebug.openingStatement.title')}</div>
</div> </div>
)} )}
{(thoughts && thoughts.length > 0) && (
<Thought list={thoughts || []} isThinking={isThinking} />
)}
{(isResponsing && !content) {(isResponsing && !content)
? ( ? (
<div className='flex items-center justify-center w-6 h-5'> <div className='flex items-center justify-center w-6 h-5'>
...@@ -204,9 +207,6 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba ...@@ -204,9 +207,6 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
) )
: ( : (
<div> <div>
{(thoughts && thoughts.length > 0) && (
<Thought list={thoughts || []} isThinking={isThinking} />
)}
<Markdown content={content} /> <Markdown content={content} />
</div> </div>
)} )}
......
...@@ -518,7 +518,6 @@ const Main: FC<IMainProps> = () => { ...@@ -518,7 +518,6 @@ const Main: FC<IMainProps> = () => {
draft.push({ ...questionItem }) draft.push({ ...questionItem })
draft.push({ ...responseItem }) draft.push({ ...responseItem })
}) })
// console.log('start render thought')
setChatList(newListWithAnswer) setChatList(newListWithAnswer)
}, },
onError() { onError() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment