tests : adjust server string regex to also match m2 utlra results (#29648)

This commit is contained in:
Georgi Gerganov
2026-09-29 15:32:35 +03:00
committed by GitHub
parent 31385c9ceb
commit c85b92c69c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3155,7 +3155,7 @@ private:
// TODO: support memory-less logits computation
if (slot.task->need_logits() && !llama_get_memory(ctx_tgt)) {
send_error(slot, "the current context does not logits computation. skipping", ERROR_TYPE_SERVER);
send_error(slot, "the current context does not support logits computation. skipping", ERROR_TYPE_SERVER);
slot.release();
return;
}
+1 -1
View File
@@ -148,7 +148,7 @@ def test_completion_stream_with_openai_library_stops():
if choice.finish_reason is None:
assert choice.text is not None
output_text += choice.text
assert match_regex("Sure, here's one for[\\s\\S]*", output_text), f'Unexpected output: {output_text}'
assert match_regex("Sure, here's one for[\\s\\S]*|Sure! Here's one for you[\\s\\S]*", output_text), f'Unexpected output: {output_text}'
@pytest.mark.parametrize("n_slots", [1, 2])