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.

fix: fix when vision is disabled delete the configs (#30420)

wangxiaoleiae43ad5cb6ca
diff --git a/web/app/components/workflow/hooks/use-config-vision.ts b/web/app/components/workflow/hooks/use-config-vision.ts
index 12a2ad38add..f9c68243c0e 100644
--- a/web/app/components/workflow/hooks/use-config-vision.ts
+++ b/web/app/components/workflow/hooks/use-config-vision.ts
@@ -49,6 +49,9 @@ const useConfigVision = (model: ModelConfig, {
variable_selector: ['sys', 'files'],
}
}
+ else if (!enabled) {
+ delete draft.configs
+ }
})
onChange(newPayload)
}, [isChatMode, onChange, payload])