Commit f775ab30 authored by Joel's avatar Joel

Merge branch 'feat/universal-chat-fe' into deploy/dev

parents f44fe6eb 9af05a3f
......@@ -58,23 +58,6 @@ const Answer: FC<IAnswerProps> = ({ item, feedbackDisabled = false, isHideFeedba
const [localAdminFeedback, setLocalAdminFeedback] = useState<Feedbacktype | undefined | null>(adminFeedback)
const { userProfile } = useContext(AppContext)
const { t } = useTranslation()
// const thoughtList = [
// {
// id: '1',
// tool: 'google_search',
// thought: 'Searching Wikipedia with Donald Trump..',
// },
// {
// id: '2',
// tool: 'google_search',
// thought: 'Searching Wikipedia with Donald Trump..',
// },
// {
// id: '3',
// tool: 'google_search',
// thought: 'Searching Wikipedia with Donald Trump..',
// },
// ]
/**
* Render feedback results (distinguish between users and administrators)
......
......@@ -161,7 +161,7 @@ const Chat: FC<IChatProps> = ({
if (item.isAnswer) {
const isLast = item.id === chatList[chatList.length - 1].id
const thoughts = item.agent_thoughts?.filter(item => item.thought !== '[DONE]')
const isThinking = item.agent_thoughts && item.agent_thoughts?.length > 0 && !item.agent_thoughts.some(item => item.thought === '[DONE]')
const isThinking = !item.content && item.agent_thoughts && item.agent_thoughts?.length > 0 && !item.agent_thoughts.some(item => item.thought === '[DONE]')
return <Answer
key={item.id}
item={item}
......
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