刷页面loading 不做多操作,优化刷新页面时抖动的情况,搜索prompt大小写适配
This commit is contained in:
@ -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不会走这里
|
||||
|
||||
Reference in New Issue
Block a user