Fix response message bug in bridge_qianfan.py,

bridge_qwen.py, and bridge_skylark2.py
这个提交包含在:
binary-husky
2024-02-15 00:02:24 +08:00
父节点 2e9b4a5770
当前提交 e359fff040
共有 4 个文件被更改,包括 9 次插入10 次删除

查看文件

@@ -51,6 +51,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
# 开始接收回复
from .com_qwenapi import QwenRequestInstance
sri = QwenRequestInstance()
response = f"[Local Message] 等待{model_name}响应中 ..."
for response in sri.generate(inputs, llm_kwargs, history, system_prompt):
chatbot[-1] = (inputs, response)
yield from update_ui(chatbot=chatbot, history=history)