From 569a211810ed496aebf248edf38e8013781ced97 Mon Sep 17 00:00:00 2001 From: mengyonghao <1533512157@qq.com> Date: Wed, 7 Jan 2026 17:53:53 +0800 Subject: [PATCH 1/2] fix(workflow): remove environment variable fields from default workflow template --- api/app/core/workflow/nodes/http_request/config.py | 2 +- api/app/templates/workflows/simple_qa/template.yml | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/api/app/core/workflow/nodes/http_request/config.py b/api/app/core/workflow/nodes/http_request/config.py index 810a716f..9b41d9f2 100644 --- a/api/app/core/workflow/nodes/http_request/config.py +++ b/api/app/core/workflow/nodes/http_request/config.py @@ -76,7 +76,7 @@ class HttpContentTypeConfig(BaseModel): elif content_type in [HttpContentType.JSON] and not isinstance(v, str): raise ValueError("When content_type is JSON, data must be of type str") elif content_type in [HttpContentType.WWW_FORM] and not isinstance(v, dict): - raise ValueError("When content_type is x-www-form-urlencoded, data must be a object") + raise ValueError("When content_type is x-www-form-urlencoded, data must be an object(dict)") elif content_type in [HttpContentType.RAW, HttpContentType.BINARY] and not isinstance(v, str): raise ValueError("When content_type is raw/binary, data must be a string (File descriptor)") return v diff --git a/api/app/templates/workflows/simple_qa/template.yml b/api/app/templates/workflows/simple_qa/template.yml index 0843744d..2cf0f9b1 100644 --- a/api/app/templates/workflows/simple_qa/template.yml +++ b/api/app/templates/workflows/simple_qa/template.yml @@ -68,12 +68,7 @@ edges: label: 完成 # 变量定义 -variables: - - name: user_question - type: string - required: true - description: 用户的问题 - default: "" +variables: [] # 执行配置 execution_config: From 701d506c1f9f1fd1ae830010fd6e79dba68a962c Mon Sep 17 00:00:00 2001 From: mengyonghao <1533512157@qq.com> Date: Wed, 7 Jan 2026 17:54:46 +0800 Subject: [PATCH 2/2] fix(memory): enable perceptual memory API and database configuration --- api/app/controllers/__init__.py | 2 ++ api/app/models/__init__.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/app/controllers/__init__.py b/api/app/controllers/__init__.py index 0b07d0c9..3d8821a4 100644 --- a/api/app/controllers/__init__.py +++ b/api/app/controllers/__init__.py @@ -35,6 +35,7 @@ from . import ( tool_controller, memory_forget_controller, home_page_controller, + memory_perceptual_controller ) from . import user_memory_controllers @@ -74,5 +75,6 @@ manager_router.include_router(memory_reflection_controller.router) manager_router.include_router(tool_controller.router) manager_router.include_router(memory_forget_controller.router) manager_router.include_router(home_page_controller.router) +manager_router.include_router(memory_perceptual_controller.router) __all__ = ["manager_router"] diff --git a/api/app/models/__init__.py b/api/app/models/__init__.py index 01dad24e..2f733664 100644 --- a/api/app/models/__init__.py +++ b/api/app/models/__init__.py @@ -25,6 +25,7 @@ from .tool_model import ( ToolConfig, BuiltinToolConfig, CustomToolConfig, MCPToolConfig, ToolExecution, ToolType, ToolStatus, AuthType, ExecutionStatus ) +from .memory_perceptual_model import MemoryPerceptualModel __all__ = [ "Tenants", @@ -71,5 +72,6 @@ __all__ = [ "ToolType", "ToolStatus", "AuthType", - "ExecutionStatus" + "ExecutionStatus", + "MemoryPerceptualModel" ]