From 2eeae9b992c97a4579319e808a4588a342985899 Mon Sep 17 00:00:00 2001 From: Wizerd Date: Tue, 19 Dec 2023 18:08:00 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.py b/main.py index b93b649..596dccf 100644 --- a/main.py +++ b/main.py @@ -127,6 +127,16 @@ def generate_gpts_payload(model, messages): raise Exception('PROXY_API_PREFIX is not set') else: print(f"PROXY_API_PREFIX: {PROXY_API_PREFIX}") + + if not UPLOAD_BASE_URL: + print("UPLOAD_BASE_URL 未设置,绘图功能将无法正常使用") + else: + print(f"UPLOAD_BASE_URL: {UPLOAD_BASE_URL}") + + if not KEY_FOR_GPTS_INFO: + print("KEY_FOR_GPTS_INFO 未设置,请将 gpts.json 中仅保留 “{}” 作为内容") + else: + print(f"KEY_FOR_GPTS_INFO: {KEY_FOR_GPTS_INFO}") print(f"==========================================")