fix: stop estimating ChatGPT subscription token speed - #270
Conversation
|
Thanks for this one, @xDenside. "Omitting the metric is more accurate than manufacturing it" is the right call and not the obvious one — the tempting fix is to clamp the number to something plausible, which would have hidden the problem instead of removing it. The root-cause write-up is precise too: Verified on your branch merged onto current
Conflict against
|
# Conflicts: # docs/decisions/INDEX.md
|
Synced this branch with The only conflict was Re-verified on the merged tree:
One behaviour note for the record: when Ready to merge. |
Summary
Why
The ChatGPT subscription bridge maps Responses API
output_tokensinto Chat Completions usage. That count can include hidden reasoning generated before the first visible delta, while the frontend fallback timer starts at the first visible text or reasoning-summary delta. Dividing those unlike values produced impossible rates such as 290.9 tok/s and 916.7 tok/s.The subscription endpoint does not expose reliable decode timing, so omitting TPS is more accurate than manufacturing it. Provider-reported llama.cpp/MLX TPS and the existing fallback for other providers are unchanged.
Verification
DropdownModelProvider.connected.test.tsxexpects an empty-key OpenAI provider to be hidden)