gpt4all: properly handle newlines in system prompt
This commit is contained in:
@@ -105,7 +105,9 @@ in
|
||||
maxLength=${model.gen_length}
|
||||
promptBatchSize=256
|
||||
promptTemplate=<|im_start|>user\n%1<|im_end|>\n<|im_start|>assistant\n
|
||||
systemPrompt="<|im_start|>system\n${system_prompt}<|im_end|>
|
||||
systemPrompt="<|im_start|>system\n${
|
||||
builtins.replaceStrings [ "\n" ] [ "\\n" ] system_prompt
|
||||
}<|im_end|>
|
||||
\n"
|
||||
'') models
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user