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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(api): type app parameter feature toggles with FeatureToggleD… (#34651)
YBoy84d8940dbf12
diff --git a/api/core/app/app_config/common/parameters_mapping/__init__.py b/api/core/app/app_config/common/parameters_mapping/__init__.pyindex 460fdfb3ba9..68686ceda65 100644--- a/api/core/app/app_config/common/parameters_mapping/__init__.py+++ b/api/core/app/app_config/common/parameters_mapping/__init__.py@@ -5,6 +5,10 @@ from configs import dify_configfrom constants import DEFAULT_FILE_NUMBER_LIMITS+class FeatureToggleDict(TypedDict):+ enabled: bool++class SystemParametersDict(TypedDict):image_file_size_limit: intvideo_file_size_limit: int@@ -16,12 +20,12 @@ class SystemParametersDict(TypedDict):class AppParametersDict(TypedDict):opening_statement: str | Nonesuggested_questions: list[str]- suggested_questions_after_answer: dict[str, Any]- speech_to_text: dict[str, Any]- text_to_speech: dict[str, Any]- retriever_resource: dict[str, Any]- annotation_reply: dict[str, Any]- more_like_this: dict[str, Any]+ suggested_questions_after_answer: FeatureToggleDict+ speech_to_text: FeatureToggleDict+ text_to_speech: FeatureToggleDict+ retriever_resource: FeatureToggleDict+ annotation_reply: FeatureToggleDict+ more_like_this: FeatureToggleDictuser_input_form: list[dict[str, Any]]sensitive_word_avoidance: dict[str, Any]file_upload: dict[str, Any]