mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-18 03:25:46 +00:00
9eb81cb549
* Added support for custom prompt formatting * more docs added * bump version
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:
|
|
""";
|
|
}
|
|
}
|