mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									d12b6cda4e
								
							
						
					
					
						commit
						b7ad82757d
					
				@ -147,17 +147,17 @@ async def update_config(form_data: ConfigForm, user=Depends(get_admin_user)):
 | 
			
		||||
 | 
			
		||||
    app.state.config.AUTOMATIC1111_CFG_SCALE = (
 | 
			
		||||
        float(form_data.automatic1111.AUTOMATIC1111_CFG_SCALE)
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_CFG_SCALE != ""
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_CFG_SCALE
 | 
			
		||||
        else None
 | 
			
		||||
    )
 | 
			
		||||
    app.state.config.AUTOMATIC1111_SAMPLER = (
 | 
			
		||||
        form_data.automatic1111.AUTOMATIC1111_SAMPLER
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_SAMPLER != ""
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_SAMPLER
 | 
			
		||||
        else None
 | 
			
		||||
    )
 | 
			
		||||
    app.state.config.AUTOMATIC1111_SCHEDULER = (
 | 
			
		||||
        form_data.automatic1111.AUTOMATIC1111_SCHEDULER
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_SCHEDULER != ""
 | 
			
		||||
        if form_data.automatic1111.AUTOMATIC1111_SCHEDULER
 | 
			
		||||
        else None
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user