mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
Set get_config as the name of the function
This commit is contained in:
parent
8d43fdadc1
commit
ac3338265d
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ router = APIRouter()
|
|||
|
||||
|
||||
@router.get("/config")
|
||||
async def get_def(request: Request, user=Depends(get_admin_user)):
|
||||
async def get_config(request: Request, user=Depends(get_admin_user)):
|
||||
return {
|
||||
"enabled": request.app.state.config.ENABLE_IMAGE_GENERATION,
|
||||
"engine": request.app.state.config.IMAGE_GENERATION_ENGINE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue