forked from open-webui/open-webui
		
	feat: editable prompt suggestions integration
This commit is contained in:
		
							parent
							
								
									4e1b52e91b
								
							
						
					
					
						commit
						c4a039326f
					
				
					 6 changed files with 172 additions and 52 deletions
				
			
		|  | @ -765,24 +765,7 @@ | |||
| 		bind:files | ||||
| 		bind:prompt | ||||
| 		bind:autoScroll | ||||
| 		suggestionPrompts={selectedModelfile?.suggestionPrompts ?? [ | ||||
| 			{ | ||||
| 				title: ['Help me study', 'vocabulary for a college entrance exam'], | ||||
| 				content: `Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option.` | ||||
| 			}, | ||||
| 			{ | ||||
| 				title: ['Give me ideas', `for what to do with my kids' art`], | ||||
| 				content: `What are 5 creative things I could do with my kids' art? I don't want to throw them away, but it's also so much clutter.` | ||||
| 			}, | ||||
| 			{ | ||||
| 				title: ['Tell me a fun fact', 'about the Roman Empire'], | ||||
| 				content: 'Tell me a random fun fact about the Roman Empire' | ||||
| 			}, | ||||
| 			{ | ||||
| 				title: ['Show me a code snippet', `of a website's sticky header`], | ||||
| 				content: `Show me a code snippet of a website's sticky header in CSS and JavaScript.` | ||||
| 			} | ||||
| 		]} | ||||
| 		suggestionPrompts={selectedModelfile?.suggestionPrompts ?? $config.default_prompt_suggestions} | ||||
| 		{messages} | ||||
| 		{submitPrompt} | ||||
| 		{stopResponse} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek