Spaces:
Paused
Paused
Update openai_ondemand_adapter.py
Browse files
openai_ondemand_adapter.py
CHANGED
@@ -14,6 +14,8 @@ SAFE_HEADERS = ["Authorization", "X-API-KEY"]
|
|
14 |
|
15 |
# 全局接口访问权限检查
|
16 |
def check_private_key():
|
|
|
|
|
17 |
# 可以在这里放宽部分接口,比如首页等
|
18 |
if request.path in ["/", "/favicon.ico"]:
|
19 |
return
|
|
|
14 |
|
15 |
# 全局接口访问权限检查
|
16 |
def check_private_key():
|
17 |
+
print("======== request.headers:", request.headers, "========")
|
18 |
+
|
19 |
# 可以在这里放宽部分接口,比如首页等
|
20 |
if request.path in ["/", "/favicon.ico"]:
|
21 |
return
|