playingapi commited on
Commit
db2ea89
·
verified ·
1 Parent(s): bb8150b

Update openai_ondemand_adapter.py

Browse files
Files changed (1) hide show
  1. openai_ondemand_adapter.py +1 -0
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: