perf(chat): 使用asyncio.create_task优化异步任务处理
This commit is contained in:
@@ -387,7 +387,7 @@ class StreamLoopManager:
|
|||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
# 直接调用chatter_manager处理流上下文
|
# 直接调用chatter_manager处理流上下文
|
||||||
results = await self.chatter_manager.process_stream_context(stream_id, context)
|
results = await asyncio.create_task(self.chatter_manager.process_stream_context(stream_id, context))
|
||||||
success = results.get("success", False)
|
success = results.get("success", False)
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
|
|||||||
Reference in New Issue
Block a user