mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-11-02 14:58:55 +00:00
C# Bindings - Prompt formatting (#712)
* Added support for custom prompt formatting * more docs added * bump version
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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:
|
||||
""";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user