fix bug in webui search_engine_chat

This commit is contained in:
imClumsyPanda 2023-08-13 16:20:53 +08:00
parent 5df3de8dd0
commit 1b07648238
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ def dialogue_page(api: ApiRequest):
Markdown("...", in_expander=True, title="网络搜索结果"),
])
text = ""
for d in api.bing_search_chat(prompt, search_engine, se_top_k):
for d in api.search_engine_chat(prompt, search_engine, se_top_k):
text += d["answer"]
chat_box.update_msg(text, 0)
chat_box.update_msg("\n\n".join(d["docs"]), 1, streaming=False)