fix: 不记忆历史的会话 #630
This commit is contained in:
@@ -151,7 +151,7 @@ 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:
|
||||
if not req or not req.conversation or not llm_response:
|
||||
return
|
||||
|
||||
if llm_response.role == "assistant":
|
||||
|
||||
Reference in New Issue
Block a user