Skip to content

Conversation

@hammadtq
Copy link
Collaborator

Summary

  • robustly parse final JSON payload from streamed responses
  • reconcile provisional token count with canonical prompt_tokens
  • update quota store and response headers accordingly

Testing

  • pytest -q

https://chatgpt.com/codex/tasks/task_e_687de3912560832bbee3b528ba60a2bc

@hammadtq hammadtq merged commit ced186f into feat/billing-hooks Jul 21, 2025
@hammadtq hammadtq deleted the codex/fix-token-counting-in-metrics branch July 21, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants