fix: ui in chat openning statement (#1094)

This commit is contained in:
crazywoola 2023-09-04 10:26:46 +08:00 committed by GitHub
parent a7cdb745c1
commit 487e699021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 148 additions and 500 deletions

View File

@ -56,7 +56,7 @@ export type IChatProps = {
const Chat: FC<IChatProps> = ({
configElem,
chatList,
controlChatUpdateAllConversation,
feedbackDisabled = false,
isHideFeedbackEdit = false,
isHideSendInput = false,

View File

@ -318,7 +318,7 @@ const Main: FC<IMainProps> = ({
content: caculatedIntroduction,
isAnswer: true,
feedbackDisabled: true,
isOpeningStatement: isPublicVersion,
isOpeningStatement: true,
}
if (caculatedIntroduction)
return [openstatement]

View File

@ -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,

File diff suppressed because it is too large Load Diff