From 6c2fc75199618f0e58911cce105ca793f66455f1 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Thu, 5 Mar 2026 16:48:50 +0800 Subject: [PATCH] [fix] Memory configuration, addition of default identifiers for the ontology scene --- api/app/controllers/ontology_controller.py | 4 ++-- api/app/services/memory_storage_service.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/app/controllers/ontology_controller.py b/api/app/controllers/ontology_controller.py index 74cad2db..c892b013 100644 --- a/api/app/controllers/ontology_controller.py +++ b/api/app/controllers/ontology_controller.py @@ -612,7 +612,7 @@ async def get_scenes( workspace_id: Optional[str] = None, scene_name: Optional[str] = None, page: Optional[int] = None, - page_size: Optional[int] = None, + pagesize: Optional[int] = None, db: Session = Depends(get_db), current_user: User = Depends(get_current_user) ): @@ -652,7 +652,7 @@ async def get_scenes( - 不分页时,page 字段为 null """ from app.controllers.ontology_secondary_routes import scenes_handler - return await scenes_handler(workspace_id, scene_name, page, page_size, db, current_user) + return await scenes_handler(workspace_id, scene_name, page, pagesize, db, current_user) # ==================== 本体类型管理接口 ==================== diff --git a/api/app/services/memory_storage_service.py b/api/app/services/memory_storage_service.py index 1083f750..beedaae9 100644 --- a/api/app/services/memory_storage_service.py +++ b/api/app/services/memory_storage_service.py @@ -211,6 +211,7 @@ class DataConfigService: # 数据配置服务类(PostgreSQL) "apply_id": config.apply_id, "scene_id": str(config.scene_id) if config.scene_id else None, "scene_name": scene_name, # 新增:场景名称 + "is_system_default": config.is_default, # 是否为系统默认配置 "llm_id": config.llm_id, "embedding_id": config.embedding_id, "rerank_id": config.rerank_id,