Skip to content

Commit

Permalink
Fix missing MATHPIX_APPID and MATHPIX_APPKEY
Browse files Browse the repository at this point in the history
configuration
  • Loading branch information
binary-husky committed Feb 21, 2024
1 parent bdfe386 commit b72289b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/Latex输出PDF.py
Expand Up @@ -434,7 +434,7 @@ def PDF翻译中文并重新编译PDF(txt, llm_kwargs, plugin_kwargs, chatbot, h
return
app_id, app_key = get_conf('MATHPIX_APPID', 'MATHPIX_APPKEY')
if len(app_id) == 0 or len(app_key) == 0:
report_exception(chatbot, history, a=f"请配置 MATHPIX_APPID 和 MATHPIX_APPKEY")
report_exception(chatbot, history, a="缺失 MATHPIX_APPID 和 MATHPIX_APPKEY。", b=f"请配置 MATHPIX_APPID 和 MATHPIX_APPKEY")
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
return

Expand Down

0 comments on commit b72289b

Please sign in to comment.