feat: allow http channel not set password to use chatgpt

This commit is contained in:
牟勇
2023-03-19 21:38:29 +08:00
parent 56f3f0ddce
commit 085b3b96ad

View File

@@ -83,6 +83,9 @@ def identify(request):
:return: list
"""
try:
authPassword = channel_conf(const.HTTP).get('http_auth_password')
if (not authPassword):
return True
if (request is None):
return False
authorization = request.cookies.get('Authorization')