mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 19:49:04 +08:00
fix: ui in chat openning statement (#1094)
This commit is contained in:
parent
a7cdb745c1
commit
487e699021
@ -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> = ({
|
|||||||
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> = ({
|
|||||||
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,
|
||||||
|
643
web/yarn.lock
643
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user