server: Fix has_next_line
in JSON response (#10818)
* Update server JSON response. * Add unit test to check `has_new_line` JSON response * Remove `has_new_line` unit test changes. * Address code review comment: type check for `has_new_line` in unit test
This commit is contained in:
parent
e52aba537a
commit
89d604f2c8
3 changed files with 4 additions and 2 deletions
|
@ -459,7 +459,7 @@ struct server_task_result_cmpl_final : server_task_result {
|
|||
int32_t n_decoded;
|
||||
int32_t n_prompt_tokens;
|
||||
int32_t n_tokens_cached;
|
||||
int32_t has_new_line;
|
||||
bool has_new_line;
|
||||
std::string stopping_word;
|
||||
stop_type stop = STOP_TYPE_NONE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue