forked from open-webui/open-webui
		
	Add wait for tick before scrolling down in openai
We had this wait on ollama but not for openai, causing it to fail to scroll down in certain cases. This fixes the issue.
This commit is contained in:
		
							parent
							
								
									ac294a74e7
								
							
						
					
					
						commit
						d245b756a3
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -517,6 +517,10 @@ | |||
| 
 | ||||
| 	const sendPromptOpenAI = async (model, userPrompt, responseMessageId, _chatId) => { | ||||
| 		const responseMessage = history.messages[responseMessageId]; | ||||
| 
 | ||||
| 		// Wait until history/message have been updated | ||||
| 		await tick(); | ||||
| 
 | ||||
| 		scrollToBottom(); | ||||
| 
 | ||||
| 		const docs = messages | ||||
|  |  | |||
|  | @ -527,6 +527,10 @@ | |||
| 
 | ||||
| 	const sendPromptOpenAI = async (model, userPrompt, responseMessageId, _chatId) => { | ||||
| 		const responseMessage = history.messages[responseMessageId]; | ||||
| 
 | ||||
| 		// Wait until history/message have been updated | ||||
| 		await tick(); | ||||
| 
 | ||||
| 		scrollToBottom(); | ||||
| 
 | ||||
| 		const docs = messages | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Ryan
						Andrew Ryan