splinter: exact token counts from the provider's usage block
The sidebar counted characters and guessed tokens. The provider reports the real numbers in the final chunk (prompt_tokens/completion_tokens, or input_tokens/output_tokens), so both the streaming accumulator and the one-shot reply parser now keep them, the agent sums them per turn, and the sidebar shows '79 tok (in 344)' instead of an estimate. The estimate stays as the fallback for endpoints that report nothing, and it is still labelled as one.
This commit is contained in:
1 parent
4ce25255a7
commit
95a57fdbbc
12 files changed
+74
-2
No files matched your search
Binary file not shown.
Reference in new issue
Block a user