server: fix prompt check
This commit is contained in:
parent
bba27edadc
commit
53c2db1685
1 changed files with 1 additions and 1 deletions
|
@ -1075,7 +1075,7 @@ static void parse_options_completion(const json &body, llama_server_context &lla
|
|||
llama.params.seed = body.value("seed", default_params.seed);
|
||||
llama.params.n_probs = body.value("n_probs", default_params.n_probs);
|
||||
|
||||
if (body.count("content") != 0)
|
||||
if (body.count("prompt") != 0)
|
||||
{
|
||||
llama.prompt = body["prompt"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue