Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

serve tests: the image-marker test no longer pins control-token text as special (#931 makes it text)

Niko12214a7a9871fbe7
diff --git a/serve/test_server.py b/serve/test_server.py
index 23a37f7e6..590cf05ca 100644
--- a/serve/test_server.py
+++ b/serve/test_server.py
@@ -442,9 +442,9 @@ class ImageMarkers(unittest.TestCase):
{"type": "text", "text": "d|>"}, *pictures]
with self.assertRaisesRegex(ValueError, "do not match"):
svc.prepare([{"role": "user", "content": cut}], None, {})
- # a prompt without the marker strings has exactly the ids it had (other special tokens as well)
+ # a prompt without the marker strings has exactly the ids it had
old = lambda m, t=None: tok.encode(svc.template.render(m, tools=t), parse_special=True) # noqa: E731
- for msgs, tools in (([{"role": "user", "content": "plain <|im_end|> <|endoftext|>"}], None),
+ for msgs, tools in (([{"role": "user", "content": "plain text, no markers"}], None), # (#931: control-token text is text now)
([{"role": "system", "content": "s"}, {"role": "user", "content": pictures}], None),
([{"role": "user", "content": "x"}, {"role": "assistant", "content": "",
"tool_calls": [{"function": {"name": "f", "arguments": {"a": "<|image"}}}]}],