Unverified Commit 487e6990 authored by crazywoola's avatar crazywoola Committed by GitHub

fix: ui in chat openning statement (#1094)

parent a7cdb745
......@@ -56,7 +56,7 @@ export type IChatProps = {
const Chat: FC<IChatProps> = ({
configElem,
chatList,
controlChatUpdateAllConversation,
feedbackDisabled = false,
isHideFeedbackEdit = false,
isHideSendInput = false,
......
......@@ -318,7 +318,7 @@ const Main: FC<IMainProps> = ({
content: caculatedIntroduction,
isAnswer: true,
feedbackDisabled: true,
isOpeningStatement: isPublicVersion,
isOpeningStatement: true,
}
if (caculatedIntroduction)
return [openstatement]
......
......@@ -238,7 +238,6 @@ const Main: FC<IMainProps> = ({
if (caculatedIntroduction && caculatedPromptVariables)
caculatedIntroduction = replaceStringWithValues(caculatedIntroduction, promptConfig?.prompt_variables || [], caculatedPromptVariables)
// console.log(isPublicVersion)
const openstatement = {
id: `${Date.now()}`,
content: caculatedIntroduction,
......
This diff is collapsed.
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