File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2336,6 +2336,7 @@ async def get_app_config(request: Request):
23362336 ** ({'onboarding' : True } if onboarding else {}),
23372337 'status' : True ,
23382338 'name' : app .state .WEBUI_NAME ,
2339+ 'version' : VERSION ,
23392340 'default_locale' : str (DEFAULT_LOCALE ),
23402341 'oauth' : {'providers' : {name : config .get ('name' , name ) for name , config in OAUTH_PROVIDERS .items ()}},
23412342 'features' : {
@@ -2392,7 +2393,6 @@ async def get_app_config(request: Request):
23922393 },
23932394 ** (
23942395 {
2395- 'version' : VERSION ,
23962396 'default_models' : app .state .config .DEFAULT_MODELS ,
23972397 'default_pinned_models' : app .state .config .DEFAULT_PINNED_MODELS ,
23982398 'default_prompt_suggestions' : app .state .config .DEFAULT_PROMPT_SUGGESTIONS ,
@@ -2491,7 +2491,7 @@ async def update_webhook_url(form_data: UrlForm, user=Depends(get_admin_user)):
24912491
24922492
24932493@app .get ('/api/version' )
2494- async def get_app_version (user = Depends ( get_verified_user ) ):
2494+ async def get_app_version ():
24952495 return {
24962496 'version' : VERSION ,
24972497 'deployment_id' : DEPLOYMENT_ID ,
You can’t perform that action at this time.
0 commit comments