forked from open-webui/open-webui
		
	fix: config json backward compatibility issue
This commit is contained in:
		
							parent
							
								
									c42cb438f9
								
							
						
					
					
						commit
						74638bbd6e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -168,7 +168,11 @@ async def get_app_config(): | |||
|         "status": True, | ||||
|         "name": WEBUI_NAME, | ||||
|         "version": VERSION, | ||||
|         "default_locale": CONFIG_DATA["ui"]["default_locale"], | ||||
|         "default_locale": ( | ||||
|             CONFIG_DATA["ui"]["default_locale"] | ||||
|             if "default_locale" in CONFIG_DATA["ui"] | ||||
|             else "en-US" | ||||
|         ), | ||||
|         "images": images_app.state.ENABLED, | ||||
|         "default_models": webui_app.state.DEFAULT_MODELS, | ||||
|         "default_prompt_suggestions": webui_app.state.DEFAULT_PROMPT_SUGGESTIONS, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek