mirror of
				https://github.com/nomic-ai/gpt4all.git
				synced 2025-10-30 21:30:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			417 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			417 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace Gpt4All;
 | |
| 
 | |
| public class DefaultPromptFormatter : IPromptFormatter
 | |
| {
 | |
|     public string FormatPrompt(string prompt)
 | |
|     {
 | |
|         return $"""
 | |
|         ### Instruction: 
 | |
|         The prompt below is a question to answer, a task to complete, or a conversation
 | |
|         to respond to; decide which and write an appropriate response.
 | |
|         ### Prompt:
 | |
|         {prompt}
 | |
|         ### Response:
 | |
|         """;
 | |
|     }
 | |
| }
 |