mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
refactor: session append重命名为query
This commit is contained in:
parent
7979a8e97f
commit
1b0ae8da58
|
@ -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:
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user