Spaces:
Running
Running
binary-husky
commited on
Commit
•
dadbb71
1
Parent(s):
18a5959
Update bridge_chatgpt.py
Browse files
request_llm/bridge_chatgpt.py
CHANGED
@@ -216,7 +216,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
|
|
216 |
else:
|
217 |
from toolbox import regular_txt_to_markdown
|
218 |
tb_str = '```\n' + trimmed_format_exc() + '```'
|
219 |
-
chatbot[-1] = (chatbot[-1][0], f"[Local Message] 异常 \n\n{tb_str} \n\n{regular_txt_to_markdown(chunk_decoded
|
220 |
yield from update_ui(chatbot=chatbot, history=history, msg="Json异常" + error_msg) # 刷新界面
|
221 |
return
|
222 |
|
|
|
216 |
else:
|
217 |
from toolbox import regular_txt_to_markdown
|
218 |
tb_str = '```\n' + trimmed_format_exc() + '```'
|
219 |
+
chatbot[-1] = (chatbot[-1][0], f"[Local Message] 异常 \n\n{tb_str} \n\n{regular_txt_to_markdown(chunk_decoded)}")
|
220 |
yield from update_ui(chatbot=chatbot, history=history, msg="Json异常" + error_msg) # 刷新界面
|
221 |
return
|
222 |
|