mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
fix: 修复reset逻辑导致的无法初始化情景预设问题
This commit is contained in:
@@ -22,7 +22,7 @@ class ResetCommand(AbstractCommandNode):
|
||||
reply = ""
|
||||
|
||||
if len(params) == 0:
|
||||
pkg.openai.session.get_session(session_name).reset(explicit=True)
|
||||
pkg.openai.session.get_session(session_name).reset(explicit=True, persist=True)
|
||||
reply = [tips_custom.command_reset_message]
|
||||
else:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user