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: suggest deepseek-v4-flash for Agent mode (#40852)

Chengxiao394b43376ab1
diff --git a/web/features/agent-v2/agent-detail/configure/__tests__/model-compatibility.spec.ts b/web/features/agent-v2/agent-detail/configure/__tests__/model-compatibility.spec.ts
index 25372c6224d..e58ca550e8c 100644
--- a/web/features/agent-v2/agent-detail/configure/__tests__/model-compatibility.spec.ts
+++ b/web/features/agent-v2/agent-detail/configure/__tests__/model-compatibility.spec.ts
@@ -189,6 +189,7 @@ describe('isAgentSuggestedModel', () => {
)
expect(isAgentSuggestedModel(provider, createModelItem('grok-4.3'))).toBe(true)
expect(isAgentSuggestedModel(provider, createModelItem('deepseek-v4-pro'))).toBe(true)
+ expect(isAgentSuggestedModel(provider, createModelItem('deepseek-v4-flash'))).toBe(true)
expect(isAgentSuggestedModel(provider, createModelItem('kimi-k2.6'))).toBe(true)
expect(isAgentSuggestedModel(provider, createModelItem('minimax-m3'))).toBe(true)
expect(isAgentSuggestedModel(provider, createModelItem('qwen3.7-max'))).toBe(true)
diff --git a/web/features/agent-v2/agent-detail/configure/model-compatibility.ts b/web/features/agent-v2/agent-detail/configure/model-compatibility.ts
index 4d52d7ecdbc..ba67ab80772 100644
--- a/web/features/agent-v2/agent-detail/configure/model-compatibility.ts
+++ b/web/features/agent-v2/agent-detail/configure/model-compatibility.ts
@@ -79,6 +79,7 @@ const agentSuggestedModelPatterns: RegExp[] = [
// deepseek
/^deepseek[ .-]v4[ .-]pro$/i,
+ /^deepseek[ .-]v4[ .-]flash$/i,
// qwen
/^qwen[ .-]?3\.7[ .-]max$/i,