forked from open-webui/open-webui
		
	feat: title auto-generate for openai apis
This commit is contained in:
		
							parent
							
								
									a4ca1fc5c4
								
							
						
					
					
						commit
						bd84753c6b
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -675,8 +675,13 @@ | |||
| 
 | ||||
| 		if (messages.length == 2) { | ||||
| 			window.history.replaceState(history.state, '', `/c/${_chatId}`); | ||||
| 
 | ||||
| 			if ($settings?.titleAutoGenerateModel) { | ||||
| 				await generateChatTitle(_chatId, userPrompt); | ||||
| 			} else { | ||||
| 				await setChatTitle(_chatId, userPrompt); | ||||
| 			} | ||||
| 		} | ||||
| 	}; | ||||
| 
 | ||||
| 	const stopResponse = () => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue