Spaces:
Paused
Paused
Update openai_ondemand_adapter.py
Browse files
openai_ondemand_adapter.py
CHANGED
|
@@ -15,6 +15,7 @@ SAFE_HEADER = "X-API-KEY"
|
|
| 15 |
def check_private_key():
|
| 16 |
if request.path in ["/", "/favicon.ico"]:
|
| 17 |
return
|
|
|
|
| 18 |
print(request.headers)
|
| 19 |
key = request.headers.get(SAFE_HEADER)
|
| 20 |
if not key or key != PRIVATE_KEY:
|
|
|
|
| 15 |
def check_private_key():
|
| 16 |
if request.path in ["/", "/favicon.ico"]:
|
| 17 |
return
|
| 18 |
+
print("check_private_key")
|
| 19 |
print(request.headers)
|
| 20 |
key = request.headers.get(SAFE_HEADER)
|
| 21 |
if not key or key != PRIVATE_KEY:
|