forked from open-webui/open-webui
		
	format some files with prettier
This commit is contained in:
		
							parent
							
								
									3fa5144cf6
								
							
						
					
					
						commit
						f73cae2a73
					
				
					 5 changed files with 17 additions and 6 deletions
				
			
		|  | @ -21,7 +21,7 @@ | |||
| 
 | ||||
| 	export let suggestionPrompts = []; | ||||
| 	export let autoScroll = true; | ||||
| 	let chatTextAreaElement:HTMLTextAreaElement | ||||
| 	let chatTextAreaElement: HTMLTextAreaElement; | ||||
| 	let filesInputElement; | ||||
| 
 | ||||
| 	let promptsElement; | ||||
|  |  | |||
|  | @ -82,7 +82,10 @@ | |||
| 		fullScreenMode = settings.fullScreenMode ?? false; | ||||
| 		titleAutoGenerateModel = settings.titleAutoGenerateModel ?? ''; | ||||
| 		titleGenerationPrompt = | ||||
| 			settings.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}'; | ||||
| 			settings.titleGenerationPrompt ?? | ||||
| 			$i18n.t( | ||||
| 				"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':" | ||||
| 			) + ' {{prompt}}'; | ||||
| 	}); | ||||
| </script> | ||||
| 
 | ||||
|  |  | |||
|  | @ -769,7 +769,10 @@ | |||
| 		if ($settings.titleAutoGenerate ?? true) { | ||||
| 			const title = await generateTitle( | ||||
| 				localStorage.token, | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}', | ||||
| 				$settings?.titleGenerationPrompt ?? | ||||
| 					$i18n.t( | ||||
| 						"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':" | ||||
| 					) + ' {{prompt}}', | ||||
| 				$settings?.titleAutoGenerateModel ?? selectedModels[0], | ||||
| 				userPrompt | ||||
| 			); | ||||
|  |  | |||
|  | @ -778,7 +778,10 @@ | |||
| 		if ($settings.titleAutoGenerate ?? true) { | ||||
| 			const title = await generateTitle( | ||||
| 				localStorage.token, | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t("Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':") + ' {{prompt}}', | ||||
| 				$settings?.titleGenerationPrompt ?? | ||||
| 					$i18n.t( | ||||
| 						"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':" | ||||
| 					) + ' {{prompt}}', | ||||
| 				$settings?.titleAutoGenerateModel ?? selectedModels[0], | ||||
| 				userPrompt | ||||
| 			); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ased Mammad
						Ased Mammad