Skip to content

Conversation

@hammadtq
Copy link
Collaborator

Summary

  • add pluggable usage backends with a Prometheus counter
  • wire usage backend into application factory and main entrypoint
  • augment TokenQuotaMiddleware to emit usage events
  • add regression test for Prometheus backend
  • document new usage hooks
  • warn when tiktoken missing and export backend types

Testing

  • pytest -q

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

@hammadtq hammadtq merged commit 8a0badd into feat/billing-hooks Jul 15, 2025
@hammadtq hammadtq deleted the codex/implement-pluggable-billing-hooks branch July 15, 2025 06:28
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