接入新模型

这个提交包含在:
binary-husky
2023-10-28 19:23:43 +08:00
父节点 cf085565a7
当前提交 127385b846
共有 18 个文件被更改,包括 253 次插入40 次删除

查看文件

@@ -219,7 +219,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
moss_handle = None
return
else:
response = "[Local Message]: 等待MOSS响应中 ..."
response = "[Local Message] 等待MOSS响应中 ..."
chatbot[-1] = (inputs, response)
yield from update_ui(chatbot=chatbot, history=history)
@@ -238,7 +238,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
yield from update_ui(chatbot=chatbot, history=history)
# 总结输出
if response == "[Local Message]: 等待MOSS响应中 ...":
response = "[Local Message]: MOSS响应异常 ..."
if response == "[Local Message] 等待MOSS响应中 ...":
response = "[Local Message] MOSS响应异常 ..."
history.extend([inputs, response.strip('<|MOSS|>: ')])
yield from update_ui(chatbot=chatbot, history=history)