Skip to content

Commit 270c5d6

Browse files
committed
clarify a bit
1 parent d893770 commit 270c5d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ struct server_task_result {
392392
return false;
393393
}
394394
virtual bool is_stop() {
395-
// only used by server_task_result_cmpl_final
395+
// only used by server_task_result_cmpl_*
396396
return false;
397397
}
398398
virtual int get_index() {

examples/server/tests/unit/test_completion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_completion_stream(prompt: str, n_predict: int, re_content: str, n_promp
4242
})
4343
content = ""
4444
for data in res:
45+
assert "stop" in data and type(data["stop"]) == bool
4546
if data["stop"]:
4647
assert data["timings"]["prompt_n"] == n_prompt
4748
assert data["timings"]["predicted_n"] == n_predicted

0 commit comments

Comments
 (0)