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
feat: Make the logic of APP filtering and creation the same (#16079)
jiangbo721f31e3313b034
diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.pyindex bf29ea85b72..3e908b76a7c 100644--- a/api/controllers/console/app/app.py+++ b/api/controllers/console/app/app.py@@ -50,7 +50,15 @@ class AppListApi(Resource):parser.add_argument("mode",type=str,- choices=["chat", "workflow", "agent-chat", "channel", "all"],+ choices=[+ "completion",+ "chat",+ "advanced-chat",+ "workflow",+ "agent-chat",+ "channel",+ "all",+ ],default="all",location="args",required=False,diff --git a/api/services/app_service.py b/api/services/app_service.pyindex effe1298ee0..e87a1c79312 100644--- a/api/services/app_service.py+++ b/api/services/app_service.py@@ -36,9 +36,13 @@ class AppService:filters = [App.tenant_id == tenant_id, App.is_universal == False]if args["mode"] == "workflow":- filters.append(App.mode.in_([AppMode.WORKFLOW.value, AppMode.COMPLETION.value]))+ filters.append(App.mode == AppMode.WORKFLOW.value)+ elif args["mode"] == "completion":+ filters.append(App.mode == AppMode.COMPLETION.value)elif args["mode"] == "chat":- filters.append(App.mode.in_([AppMode.CHAT.value, AppMode.ADVANCED_CHAT.value]))+ filters.append(App.mode == AppMode.CHAT.value)+ elif args["mode"] == "advanced-chat":+ filters.append(App.mode == AppMode.ADVANCED_CHAT.value)elif args["mode"] == "agent-chat":filters.append(App.mode == AppMode.AGENT_CHAT.value)elif args["mode"] == "channel":diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsxindex 4eca5012a1a..be5031ab438 100644--- a/web/app/(commonLayout)/apps/Apps.tsx+++ b/web/app/(commonLayout)/apps/Apps.tsx@@ -8,6 +8,7 @@ import { useDebounceFn } from 'ahooks'import {RiApps2Line,RiExchange2Line,+ RiFile4Line,RiMessage3Line,RiRobot3Line,} from '@remixicon/react'@@ -81,6 +82,8 @@ const Apps = () => {{ value: 'all', text: t('app.types.all'), icon: <RiApps2Line className='mr-1 h-[14px] w-[14px]' /> },{ value: 'chat', text: t('app.types.chatbot'), icon: <RiMessage3Line className='mr-1 h-[14px] w-[14px]' /> },{ value: 'agent-chat', text: t('app.types.agent'), icon: <RiRobot3Line className='mr-1 h-[14px] w-[14px]' /> },+ { value: 'completion', text: t('app.types.completion'), icon: <RiFile4Line className='mr-1 h-[14px] w-[14px]' /> },+ { value: 'advanced-chat', text: t('app.types.advanced'), icon: <RiMessage3Line className='mr-1 h-[14px] w-[14px]' /> },{ value: 'workflow', text: t('app.types.workflow'), icon: <RiExchange2Line className='mr-1 h-[14px] w-[14px]' /> },]