Skip to content

Commit

Permalink
[feat] 优化项目启动参数检测
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizerd authored and Wizerd committed Dec 19, 2023
1 parent e0256d6 commit 2eeae9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"==========================================")

Expand Down

0 comments on commit 2eeae9b

Please sign in to comment.