Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: Increase the number of Opening Questions in the Conversation Opener (#11233)

Hiroshi Fujita9bc5bc254811
diff --git a/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx b/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx
index e652579cfcb..6d16660e81b 100644
--- a/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx
+++ b/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx
@@ -22,7 +22,7 @@ import { getNewVar } from '@/utils/var'
import { varHighlightHTML } from '@/app/components/app/configuration/base/var-highlight'
import Toast from '@/app/components/base/toast'
-const MAX_QUESTION_NUM = 5
+const MAX_QUESTION_NUM = 10
export type IOpeningStatementProps = {
value: string
diff --git a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx
index 9f25d0fa11b..41ed043e93d 100644
--- a/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx
+++ b/web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx
@@ -22,7 +22,7 @@ type OpeningSettingModalProps = {
onAutoAddPromptVariable?: (variable: PromptVariable[]) => void
}
-const MAX_QUESTION_NUM = 5
+const MAX_QUESTION_NUM = 10
const OpeningSettingModal = ({
data,