forked from open-webui/open-webui
		
	fix: openai issue
This commit is contained in:
		
							parent
							
								
									653a0ff02f
								
							
						
					
					
						commit
						eda157e303
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		|  | @ -520,11 +520,6 @@ | |||
| 	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 | ||||
| 			.filter((message) => message?.files ?? null) | ||||
| 			.map((message) => | ||||
|  | @ -593,6 +588,11 @@ | |||
| 				: `${OPENAI_API_BASE_URL}` | ||||
| 		); | ||||
| 
 | ||||
| 		// Wait until history/message have been updated | ||||
| 		await tick(); | ||||
| 
 | ||||
| 		scrollToBottom(); | ||||
| 
 | ||||
| 		if (res && res.ok) { | ||||
| 			const reader = res.body | ||||
| 				.pipeThrough(new TextDecoderStream()) | ||||
|  |  | |||
|  | @ -536,11 +536,6 @@ | |||
| 	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 | ||||
| 			.filter((message) => message?.files ?? null) | ||||
| 			.map((message) => | ||||
|  | @ -607,6 +602,11 @@ | |||
| 				: `${OPENAI_API_BASE_URL}` | ||||
| 		); | ||||
| 
 | ||||
| 		// Wait until history/message have been updated | ||||
| 		await tick(); | ||||
| 
 | ||||
| 		scrollToBottom(); | ||||
| 
 | ||||
| 		if (res && res.ok) { | ||||
| 			const reader = res.body | ||||
| 				.pipeThrough(new TextDecoderStream()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek