update:1.更新AI生成角色/组织实现自动建立关系 2.新增AI续写大纲智能引入角色功能

This commit is contained in:
xiamuceer
2025-12-11 12:43:28 +08:00
parent 9fcc06055c
commit 02bd2a2529
17 changed files with 2356 additions and 430 deletions
+11
View File
@@ -76,6 +76,17 @@ class SSEResponse:
"data": data
})
@staticmethod
async def send_event(event: str, data: Dict[str, Any]) -> str:
"""
发送自定义事件类型的SSE消息
Args:
event: 事件类型名称
data: 事件数据
"""
return SSEResponse.format_sse(data, event=event)
@staticmethod
async def send_error(error: str, code: int = 500) -> str:
"""