Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit c2a0ff9

Browse files
authored
update pre-prompt
1 parent e234418 commit c2a0ff9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

controllers/llamaCPP.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,7 @@ void llamaCPP::loadModel(
388388
this->ai_prompt = (*jsonBody).get("ai_prompt", "ASSISTANT: ").asString();
389389
this->system_prompt =
390390
(*jsonBody).get("system_prompt", "ASSISTANT's RULE: ").asString();
391-
this->pre_prompt =
392-
(*jsonBody)
393-
.get("pre_prompt",
394-
"A chat between a curious user and an artificial "
395-
"intelligence "
396-
"assistant. The assistant follows the given rules no matter "
397-
"what.\\n")
398-
.asString();
391+
this->pre_prompt = (*jsonBody).get("pre_prompt","").asString();
399392
}
400393
#ifdef GGML_USE_CUBLAS
401394
LOG_INFO << "Setting up GGML CUBLAS PARAMS";

0 commit comments

Comments
 (0)