accept_len

Function accept_len 

Source
pub fn accept_len(
    completion_tokens: usize,
    accepted_prediction_tokens: Option<usize>,
) -> Option<f64>
Expand description

2026-09-26: Emitted tokens per decode step, completion / (completion - accepted): 1.0 when no draft token was accepted. decode_floor and concurrency both read this one rule.

None when it cannot be derived: no accept count on the wire, or accepted >= completion. A None is not 1.0, which would claim the server accepted nothing.