刷页面loading 不做多操作,优化刷新页面时抖动的情况,搜索prompt大小写适配

This commit is contained in:
w_xiaolizu
2023-06-12 19:07:12 +08:00
parent ac7d82380a
commit b3f9566d19
3 changed files with 6 additions and 4 deletions

View File

@ -168,8 +168,6 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
stream_response = response.iter_lines()
while True:
try:
loading_msg = func_box.spinner_chatbot_loading(chatbot)
yield from update_ui(chatbot=loading_msg, history=history)
chunk = next(stream_response)
except StopIteration:
# 非OpenAI官方接口的出现这样的报错OpenAI和API2D不会走这里