mirror of
https://github.com/Yanyutin753/RefreshToV1Api.git
synced 2025-10-15 07:31:35 +00:00
[feat] 优化项目启动参数检测
This commit is contained in:
10
main.py
10
main.py
@@ -128,6 +128,16 @@ with app.app_context():
|
||||
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"==========================================")
|
||||
|
||||
# 从环境变量中读取模型名称,支持用逗号分隔的多个名称
|
||||
|
Reference in New Issue
Block a user