Count tokens from stored text for a suite's unmeasured samples
Backfill for rows written before the gateway recorded usage. For samples of the suite’s completed runs that have answer or reasoning text but no token figure, counts prompt, reasoning and answer tokens from the stored text (tiktoken o200k_base, one ruler for every model), marks them tokens_estimated, and refreshes each run’s per-task tokens and run totals so the leaderboard’s efficiency figures appear. Processes limit runs per call, oldest run id first; call again until remaining_runs is 0. Samples the provider or the import already measured are left alone, and a sample with no text stays unmeasured. New rows get the same figures at generation or import time, so this is a no-op on a suite with nothing to measure.
Authorizations
Body
Response
OK