refac
This commit is contained in:
1 parent
cc16e06c32
commit
ae06e199d5
1 file changed
+2
-2
@@ -2336,6 +2336,7 @@ async def get_app_config(request: Request):
|
|||||||
**({'onboarding': True} if onboarding else {}),
|
**({'onboarding': True} if onboarding else {}),
|
||||||
'status': True,
|
'status': True,
|
||||||
'name': app.state.WEBUI_NAME,
|
'name': app.state.WEBUI_NAME,
|
||||||
|
'version': VERSION,
|
||||||
'default_locale': str(DEFAULT_LOCALE),
|
'default_locale': str(DEFAULT_LOCALE),
|
||||||
'oauth': {'providers': {name: config.get('name', name) for name, config in OAUTH_PROVIDERS.items()}},
|
'oauth': {'providers': {name: config.get('name', name) for name, config in OAUTH_PROVIDERS.items()}},
|
||||||
'features': {
|
'features': {
|
||||||
@@ -2392,7 +2393,6 @@ async def get_app_config(request: Request):
|
|||||||
},
|
},
|
||||||
**(
|
**(
|
||||||
{
|
{
|
||||||
'version': VERSION,
|
|
||||||
'default_models': app.state.config.DEFAULT_MODELS,
|
'default_models': app.state.config.DEFAULT_MODELS,
|
||||||
'default_pinned_models': app.state.config.DEFAULT_PINNED_MODELS,
|
'default_pinned_models': app.state.config.DEFAULT_PINNED_MODELS,
|
||||||
'default_prompt_suggestions': app.state.config.DEFAULT_PROMPT_SUGGESTIONS,
|
'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)):
|
|||||||
|
|
||||||
|
|
||||||
@app.get('/api/version')
|
@app.get('/api/version')
|
||||||
async def get_app_version(user=Depends(get_verified_user)):
|
async def get_app_version():
|
||||||
return {
|
return {
|
||||||
'version': VERSION,
|
'version': VERSION,
|
||||||
'deployment_id': DEPLOYMENT_ID,
|
'deployment_id': DEPLOYMENT_ID,
|
||||||
|
|||||||
Reference in new issue
Block a user