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