diff --git a/docs/research/native-llm-providers.md b/docs/research/native-llm-providers.md index c9d70c7..e0ceef5 100644 --- a/docs/research/native-llm-providers.md +++ b/docs/research/native-llm-providers.md @@ -56,15 +56,17 @@ OpenAI chat-completions dialect. Reasoning rides a **side-channel field**, not t `reasoning_effort` (see §1.5); examples in docs pin `temperature: 1.0`. - Context/output: GLM-5.3 = 1M context, 128K max output, text-only (`glm-5.3-flash` adds vision). -**Streaming cadence — the coding endpoint does not stream content live (LIVE + bench):** -thinking deltas stream, but *content* deltas arrive in one end-of-turn flush. Measured today: -coding endpoint — 60 reasoning deltas, then 33 content deltas inside a 0.16 s span with -`finish` + `usage` in the same instant; PAAS endpoint — 92 reasoning deltas over 0.58 s, then -34 content deltas with **0.00 s span**. The bench shows the same at scale (pass1: glm-5.3-max -TTFT 159.3 s of 170.7 s wall, 809 tok/s — a buffering signature; real generation is ~60–90 tok/s). -Consequence for Museion: on z.ai, TTFT ≈ thinking time + most of generation; render reasoning as -it streams, but do **not** promise token-by-token content; gate progress UI on reasoning deltas -and wall clock, not on content arrival. +**Streaming cadence — content streams live; the earlier "flush" reading was a benchmark artifact (CORRECTED 2026-10-23):** +an initial probe + bench read content as one end-of-turn flush; a chunk-timing re-probe (3 request shapes, +incl. the exact bench shape) falsifies that. z.ai streams BOTH channels live in small chunks (≤15 chars): +reasoning_content deltas during thinking, then content deltas from the moment thinking ends — +489–512 content chunks spread over 4.3–13.3 s per ~550-token essay, first content chunk exactly at +last-reasoning timestamp (probe B: reasoning 1358 chunks over 29.5 s, content first@31.9 s = reasoning last@31.9 s). +The "flush" had two sources: (1) arithmetic — `completion_tokens` INCLUDES reasoning tokens, so +`out_tok / (wall − content_ttft)` divides thinking tokens by the content window and inflates tps ~8× +(bench "809 tok/s" → real ~100 tok/s content); (2) micro-probes with tiny outputs — a few dozen tokens +generated in <0.5 s legitimately look like a burst. Consequence for Museion: both channels render live; +the only silent window is thinking itself (content-TTFT = thinking duration), which is real latency, not buffering. ### 1.4 Function calling (submit_fix_cards-style typed tool)