[fix] Memory configuration, addition of default identifiers for the ontology scene
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
# ==================== 本体类型管理接口 ====================
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user