Skip to content

Commit

Permalink
Update bridge_chatgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed May 11, 2023
1 parent 18a5959 commit dadbb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request_llm/bridge_chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
else:
from toolbox import regular_txt_to_markdown
tb_str = '```\n' + trimmed_format_exc() + '```'
chatbot[-1] = (chatbot[-1][0], f"[Local Message] 异常 \n\n{tb_str} \n\n{regular_txt_to_markdown(chunk_decoded[4:])}")
chatbot[-1] = (chatbot[-1][0], f"[Local Message] 异常 \n\n{tb_str} \n\n{regular_txt_to_markdown(chunk_decoded)}")
yield from update_ui(chatbot=chatbot, history=history, msg="Json异常" + error_msg) # 刷新界面
return

Expand Down

0 comments on commit dadbb71

Please sign in to comment.