refactor: session append重命名为query

This commit is contained in:
RockChinQ 2023-08-05 22:00:32 +08:00
parent 7979a8e97f
commit 1b0ae8da58
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class Session:
# 请求回复
# 这个函数是阻塞的
def append(self, text: str=None) -> tuple[str, str, list[str]]:
def query(self, text: str=None) -> tuple[str, str, list[str]]:
"""向session中添加一条消息返回接口回复
Args:

View File

@ -40,7 +40,7 @@ def process_normal_message(text_message: str, mgr, config, launcher_type: str,
try:
prefix = "[GPT]" if config.show_prefix else ""
text, finish_reason, funcs = session.append(text_message)
text, finish_reason, funcs = session.query(text_message)
# 触发插件事件
args = {