fix: dify active message error #616

This commit is contained in:
Soulter
2025-02-27 00:26:04 +08:00
parent efbc8e4383
commit 11e9d47ce2
@@ -142,6 +142,9 @@ class LLMRequestSubStage(Stage):
return
async def _save_to_history(self, event: AstrMessageEvent, req: ProviderRequest, llm_response: LLMResponse):
if not req or not req.conversation or not llm_response or not req.contexts:
return
if llm_response.role == "assistant":
# 文本回复
contexts = req.contexts