yangdx commited on
Commit
9f83e85
·
1 Parent(s): da5b7be

Update webui assets

Browse files
lightrag/api/utils_api.py CHANGED
@@ -114,7 +114,7 @@ def get_combined_auth_dependency(api_key: Optional[str] = None):
114
  return # API key validation successful
115
 
116
  # Specail endpoint not accept token
117
- if ( api_key_configured and is_special_endpoint ):
118
  # Special endpoint but API key validation failed, return 403 error
119
  if api_key_header_value:
120
  raise HTTPException(
@@ -157,7 +157,7 @@ def get_combined_auth_dependency(api_key: Optional[str] = None):
157
 
158
  # 5. No token and API key validation failed, return 403 error
159
  if api_key_configured:
160
- if (api_key_header_value is None):
161
  raise HTTPException(
162
  status_code=HTTP_403_FORBIDDEN,
163
  detail="API Key required or login authentication required.",
 
114
  return # API key validation successful
115
 
116
  # Specail endpoint not accept token
117
+ if api_key_configured and is_special_endpoint:
118
  # Special endpoint but API key validation failed, return 403 error
119
  if api_key_header_value:
120
  raise HTTPException(
 
157
 
158
  # 5. No token and API key validation failed, return 403 error
159
  if api_key_configured:
160
+ if api_key_header_value is None:
161
  raise HTTPException(
162
  status_code=HTTP_403_FORBIDDEN,
163
  detail="API Key required or login authentication required.",
lightrag/api/webui/assets/index-Cq65VeVX.css DELETED
Binary file (53.1 kB)
 
lightrag/api/webui/assets/{index-DlScqWrq.js → index-D7OlfVcO.js} RENAMED
Binary files a/lightrag/api/webui/assets/index-DlScqWrq.js and b/lightrag/api/webui/assets/index-D7OlfVcO.js differ
 
lightrag/api/webui/assets/index-DeeaVqHZ.css ADDED
Binary file (52.1 kB). View file
 
lightrag/api/webui/index.html CHANGED
Binary files a/lightrag/api/webui/index.html and b/lightrag/api/webui/index.html differ