mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-24 21:36:06 +00:00
Merge branch 'master' of https://github.com/chordfish-k/QChatGPT
This commit is contained in:
@@ -228,7 +228,7 @@ class Session:
|
|||||||
self.last_interact_timestamp = int(time.time())
|
self.last_interact_timestamp = int(time.time())
|
||||||
|
|
||||||
# 触发插件事件
|
# 触发插件事件
|
||||||
if self.prompt == self.get_default_prompt(get_only=True):
|
if self.prompt == self.get_default_prompt(get_only = True):
|
||||||
args = {
|
args = {
|
||||||
'session_name': self.name,
|
'session_name': self.name,
|
||||||
'session': self,
|
'session': self,
|
||||||
@@ -309,7 +309,7 @@ class Session:
|
|||||||
|
|
||||||
# 持久化session
|
# 持久化session
|
||||||
def persistence(self):
|
def persistence(self):
|
||||||
if self.prompt == self.get_default_prompt(get_only=True):
|
if self.prompt == self.get_default_prompt(get_only = True):
|
||||||
return
|
return
|
||||||
|
|
||||||
db_inst = pkg.utils.context.get_database_manager()
|
db_inst = pkg.utils.context.get_database_manager()
|
||||||
|
|||||||
Reference in New Issue
Block a user