yangdx
commited on
Commit
·
3a23e78
1
Parent(s):
4fb13b0
Fix linting
Browse files
lightrag/api/utils_api.py
CHANGED
@@ -154,7 +154,7 @@ def get_combined_auth_dependency(api_key: Optional[str] = None):
|
|
154 |
status_code=status.HTTP_401_UNAUTHORIZED,
|
155 |
detail="Invalid token. Please login again.",
|
156 |
)
|
157 |
-
|
158 |
# 5. Acept all if no API protection needed
|
159 |
if not auth_configured and not api_key_configured:
|
160 |
return
|
|
|
154 |
status_code=status.HTTP_401_UNAUTHORIZED,
|
155 |
detail="Invalid token. Please login again.",
|
156 |
)
|
157 |
+
|
158 |
# 5. Acept all if no API protection needed
|
159 |
if not auth_configured and not api_key_configured:
|
160 |
return
|