Skip to content

Commit 5607d97

Browse files
committed
Rename cli flag to --api-prefix
1 parent 7b05916 commit 5607d97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
27352735
}
27362736
).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_STATIC_PATH"));
27372737
add_opt(common_arg(
2738-
{"--prefix"}, "PREFIX",
2738+
{"--api-prefix"}, "PREFIX",
27392739
string_format("prefix path the server serves from, without the trailing slash (default: %s)", params.server_prefix.c_str()),
27402740
[](common_params & params, const std::string & value) {
27412741
params.server_prefix = value;

tools/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4800,7 +4800,7 @@ int main(int argc, char ** argv) {
48004800
// Router
48014801
//
48024802

4803-
const char* server_prefix = params.server_prefix.c_str();
4803+
const char * server_prefix = params.server_prefix.c_str();
48044804

48054805
if (!params.webui) {
48064806
LOG_INF("Web UI is disabled\n");

0 commit comments

Comments
 (0)