Timothy Jaeryang Baek 5 miesięcy temu
rodzic
commit
70c6d3bf9f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      backend/open_webui/apps/webui/routers/auths.py

+ 1 - 1
backend/open_webui/apps/webui/routers/auths.py

@@ -738,7 +738,7 @@ async def update_ldap_config(
 
 # create api key
 @router.post("/api_key", response_model=ApiKey)
-async def create_api_key(request: Request, user=Depends(get_current_user)):
+async def generate_api_key(request: Request, user=Depends(get_current_user)):
     if not request.app.state.config.ENABLE_API_KEY:
         raise HTTPException(
             status.HTTP_403_FORBIDDEN,