forked from open-webui/open-webui
		
	feat: alternative models response support
This commit is contained in:
		
							parent
							
								
									0fcdee60cd
								
							
						
					
					
						commit
						ecc2466f1e
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -323,7 +323,9 @@
 | 
			
		|||
					return null;
 | 
			
		||||
				});
 | 
			
		||||
 | 
			
		||||
			const openAIModels = openaiModelRes?.data ?? null;
 | 
			
		||||
			const openAIModels = Array.isArray(openaiModelRes)
 | 
			
		||||
				? openaiModelRes
 | 
			
		||||
				: openaiModelRes?.data ?? null;
 | 
			
		||||
 | 
			
		||||
			models.push(
 | 
			
		||||
				...(openAIModels
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue