Files
grok2api/backend/internal/application
lij768423-svg 7f3f3d3ce0 fix: withhold vis<8 and plaintext-ratio dumps; count streamed visible only
requestRetry still leaked grok-4.6 dumps after the short-usage patch:
fake-enc/burst required visible >= minOutput, plaintext thinking vetoed
the dump detectors, and chat usage.completion inflated visible tokens.

Withhold when reasoning>=80 or ciphertext meets the floor and the visible
flush is <2s. Plaintext thinking still withholds if flush<2s and
reasoning/output >= 0.8. Cipher-only HasThinking waits until visible text
has streamed for 2s, or the stream ends. Visible tokens come from
streamed content only.

Does not enable requestRetry and does not change lab Docker/VERSION
defaults.
2026-09-12 10:55:54 +08:00
..