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++

Merge f-028-tools-p1

Niko1221b82d1d4567b5
diff --cc serve/frontend.py
index 9bae6a635,395f00677..3b3cdeb17
--- a/serve/frontend.py
+++ b/serve/frontend.py
@@@ -987,9 -1138,12 +1138,12 @@@ class OutputParser
# reasoning text before them is tracked (code fence, inline code, current line) to tell an act from a quote.
self.pending: list[list] = []
self.rescued = 0 # calls delivered from the reasoning
+ self.notes: list[str] = [] # #4427: what was repaired in the arguments of the calls (a damaged JSON array or object)
+ self.after_think = False # #4077: the reasoning ended at a bare `</think>` (a second one in the answer is a stray)
+ self.stray_think = 0 # ... and the strays of that kind dropped from the answer
self.refused = 0 # declared calls kept as reasoning text (quoted, or the turn was cut)
self.fence, self.line, self.ticks = "", "", 0
- # recover (opt-in, the config's "tool_call_recovery"): a declared tool's call written next to the template's
+ # recover (on in the server since 0.2.8, off for a bare OutputParser; the config's "tool_call_recovery": false turns it off): a declared tool's call written next to the template's
# form is the call - `<parameter=NAME>` as the opener, JSON inside <tool_call>, a bare <function=NAME> at the
# start of a line outside code, or a second call in the same <tool_call> (which otherwise merges into one).
self.recover = recover