mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04: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:
|
|
""";
|
|
}
|
|
}
|