Skip to content

Commit c88f2d3

Browse files
committed
Release llamafile v0.8.17
1 parent 4f88da6 commit c88f2d3

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

llama.cpp/common.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
311311
}
312312
return true;
313313
}
314-
if (arg == "-p" || arg == "--prompt") {
314+
if (arg == "-p" || arg == "--prompt" || arg == "--system-prompt") {
315315
CHECK_ARG
316316
params.prompt = argv[i];
317+
FLAG_prompt = argv[i]; // [jart]
317318
return true;
318319
}
319320
if (arg == "-e" || arg == "--escape") {

llamafile/flags.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ void llamafile_get_flags(int argc, char **argv) {
188188
continue;
189189
}
190190

191+
if (!strcmp(flag, "--prompt") || !strcmp(flag, "--system-prompt")) {
192+
if (i == argc)
193+
missing("--prompt");
194+
FLAG_prompt = argv[i++];
195+
continue;
196+
}
197+
191198
if (!strcmp(flag, "--db")) {
192199
if (i == argc)
193200
missing("--db");

llamafile/server/main.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ resources, and control how much completion parallelism can happen.
5858
Please note that
5959
.Fl Fl ctx-size
6060
has a strong influence on how many slots can be created.
61-
.It Fl p Ar TEXT , Fl Fl prompt Ar TEXT
61+
.It Fl p Ar TEXT , Fl Fl prompt Ar TEXT , Fl Fl system-prompt Ar TEXT
6262
Specifies system prompt. This value is passed along to the web frontend.
6363
.It Fl Fl no-display-prompt
6464
Hide system prompt from web user interface.

llamafile/server/main.1.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
note that --ctx-size has a strong influence on how many slots
6565
can be created.
6666

67-
[1m-p [4m[22mTEXT[24m, [1m--prompt [4m[22mTEXT[0m
67+
[1m-p [4m[22mTEXT[24m, [1m--prompt [4m[22mTEXT[24m, [1m--system-prompt [4m[22mTEXT[0m
6868
Specifies system prompt. This value is passed along to the web
6969
frontend.
7070

llamafile/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#define LLAMAFILE_MAJOR 0
44
#define LLAMAFILE_MINOR 8
5-
#define LLAMAFILE_PATCH 16
5+
#define LLAMAFILE_PATCH 17
66
#define LLAMAFILE_VERSION \
77
(100000000 * LLAMAFILE_MAJOR + 1000000 * LLAMAFILE_MINOR + LLAMAFILE_PATCH)
88

0 commit comments

Comments
 (0)