Skip to content

Add token counts, timestamps, and model to rollouts #1583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

bl-ue
Copy link

@bl-ue bl-ue commented Jul 15, 2025

This PR adds per-message token count info and timestamps and per-chat selected model info to the rollout JSONL files. Note that this change is only in the Rust version; I didn't add this information to the TypeScript version's JSON rollout files, but I can if desired.

I'm now going to finish implementing Codex support in Splitrail.

Related: #1572

Copy link

github-actions bot commented Jul 15, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@bl-ue bl-ue force-pushed the enhance-recorded-chat-history-071525 branch from 30edd03 to 9bf17f4 Compare July 15, 2025 15:41
@bl-ue
Copy link
Author

bl-ue commented Jul 15, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jul 15, 2025
@bl-ue bl-ue marked this pull request as draft July 16, 2025 01:21
@bl-ue bl-ue marked this pull request as ready for review July 17, 2025 20:30
@bl-ue
Copy link
Author

bl-ue commented Jul 17, 2025

Ready for review.

@bl-ue bl-ue marked this pull request as draft July 21, 2025 15:17
…rollout files

This ensures that the metadata is updated as well as the contents, so that file watchers can get immediate updates.
@bl-ue bl-ue marked this pull request as ready for review July 21, 2025 16:09
@bl-ue
Copy link
Author

bl-ue commented Jul 21, 2025

Hi @bolinfest! This PR adds token, timestamp, and model information to rollout files. This enables our new tool, Splitrail, to track token usage, cost, and throughput for Codex users. It also makes it easier for other tools to do the same. Do you mind taking a look? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant