You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The endpoint decides where a long answer stops #760
Extraction never sends max_tokens, so where a long answer stops is decided by the endpoint's own
default. Measured while trying a reasoning cap (#759):
With reasoning disabled, a dense passage's answer stopped at exactly 4,096 completion tokens with finish_reason: length, and the JSON could not be parsed.
The four-filing run with reasoning_effort: low recorded 8 truncated_reply drops; the uncapped
baseline recorded 0. Across all bases in the e2e database the reason has fired 10 times.
truncated_reply already does the right thing: the parser keeps every complete item and records a
drop row, so nothing is silently lost. Two things are still worth doing:
Send an explicit max_tokens on the extraction and alignment calls, large enough that a
dense chunk's JSON fits, so the ceiling is ours rather than whatever the endpoint defaults to.
This endpoint ignores the field when reasoning is on, and honours it when reasoning is off, so
sending it costs nothing and helps wherever it is read.
Say why the answer was cut.chat_at_streaming treats finish_reason: length as a normal
end, so a truncated answer reaches the parser looking complete. Carrying the reason through would
let the drop row say the answer hit the token ceiling instead of only that it did not parse.
Neither is urgent: the drop is a row today and the statements before the cut are kept.
Activity
The token ceiling is ours, and a cut reply says so
The token ceiling is ours, and a cut reply says so (deeplethe#786)