In streaming output mode, the content in delta is missing from the second to last data #11746
My solution is to add a default value to the output content
This commit is contained in:
parent
d2fe216fb2
commit
f3cdb201ef
1 changed files with 1 additions and 1 deletions
|
@ -797,7 +797,7 @@ struct server_task_result_cmpl_final : server_task_result {
|
|||
json choice = json {
|
||||
{"finish_reason", finish_reason},
|
||||
{"index", 0},
|
||||
{"delta", json::object()}
|
||||
{"delta", json {{"content", ""},}}
|
||||
};
|
||||
|
||||
json ret = json {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue