From b72289bfb05605ce3dfd127cf3bf9592897a9edf Mon Sep 17 00:00:00 2001 From: binary-husky Date: Wed, 21 Feb 2024 14:18:50 +0800 Subject: [PATCH] Fix missing MATHPIX_APPID and MATHPIX_APPKEY configuration --- "crazy_functions/Latex\350\276\223\345\207\272PDF.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/crazy_functions/Latex\350\276\223\345\207\272PDF.py" "b/crazy_functions/Latex\350\276\223\345\207\272PDF.py" index 919a1dbc1f..fc878f9ff0 100644 --- "a/crazy_functions/Latex\350\276\223\345\207\272PDF.py" +++ "b/crazy_functions/Latex\350\276\223\345\207\272PDF.py" @@ -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