Skip to content

PHASE3-Bill2: Usage tracking & quota enforcement #20

@psypherion

Description

@psypherion
  • Log every API call (endpoint, tokens, cost, user_id)
  • Aggregate daily usage per user
  • Check quota before LLM call: generated_count < limit?
  • Increment counter after successful generation
  • Expose GET /api/quota endpoint
  • Warning when 80% quota reached
  • Graceful handling when over quota (429 error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions