update:1.更新AI生成角色/组织实现自动建立关系 2.新增AI续写大纲智能引入角色功能
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user