Skip to content

Commit

Permalink
Default streaming to false if it's not set in the request body.
Browse files Browse the repository at this point in the history
  • Loading branch information
digiwombat committed May 31, 2023
1 parent 38eaf2b commit a25f830
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ bool parse_options_completion(json body, llama_server_context& llama, Response &
{
llama.streaming = body["streaming"].get<bool>();
}
else
{
llama.streaming = false;
}
if (!body["n_predict"].is_null())
{
llama.params.n_predict = body["n_predict"].get<int>();
Expand Down

0 comments on commit a25f830

Please # to comment.