mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-09 08:34:37 +00:00
server : allow setting --reverse-prompt
arg (#14799)
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
This commit is contained in:
parent
48b86c4fdb
commit
adef81781a
2 changed files with 6 additions and 1 deletions
|
@ -253,6 +253,7 @@ struct server_task {
|
|||
defaults.sampling = params_base.sampling;
|
||||
defaults.speculative = params_base.speculative;
|
||||
defaults.n_keep = params_base.n_keep;
|
||||
defaults.antiprompt = params_base.antiprompt;
|
||||
|
||||
// enabling this will output extra debug information in the HTTP responses from the server
|
||||
params.verbose = params_base.verbosity > 9;
|
||||
|
@ -490,6 +491,10 @@ struct server_task {
|
|||
}
|
||||
}
|
||||
}
|
||||
// set reverse prompt from cli args if not set in the request
|
||||
if (params.antiprompt.empty()) {
|
||||
params.antiprompt = defaults.antiprompt;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue