forked from open-webui/open-webui
		
	fix: #1705
This commit is contained in:
		
							parent
							
								
									86bc0c8c73
								
							
						
					
					
						commit
						589de36af7
					
				
					 1 changed files with 9 additions and 7 deletions
				
			
		|  | @ -75,14 +75,16 @@ | |||
| 	}; | ||||
| 
 | ||||
| 	const updateConfigHandler = async () => { | ||||
| 		const res = await updateAudioConfig(localStorage.token, { | ||||
| 			url: OpenAIUrl, | ||||
| 			key: OpenAIKey | ||||
| 		}); | ||||
| 		if (TTSEngine === 'openai') { | ||||
| 			const res = await updateAudioConfig(localStorage.token, { | ||||
| 				url: OpenAIUrl, | ||||
| 				key: OpenAIKey | ||||
| 			}); | ||||
| 
 | ||||
| 		if (res) { | ||||
| 			OpenAIUrl = res.OPENAI_API_BASE_URL; | ||||
| 			OpenAIKey = res.OPENAI_API_KEY; | ||||
| 			if (res) { | ||||
| 				OpenAIUrl = res.OPENAI_API_BASE_URL; | ||||
| 				OpenAIKey = res.OPENAI_API_KEY; | ||||
| 			} | ||||
| 		} | ||||
| 	}; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek