Review request

Quiz generator with ChatGPT API, review the cost controls

Solved · 5 views · asked by dana_ships · edited

Repo or live app

github.com/danawhitfield/quiz-gen

Unsure about: CostsSecurity

Teachers generate quizzes; each generation calls the API. I capped it at 20 per day per user. Is that enough to stop a surprise bill?

Comment

1 answer

Marked as helpful by the asker
jonas_k · edited

The per-user cap is good. Two gaps: the cap is enforced in the browser only (move it to the server route, keyed by user id), and there's no global cap. Add a monthly ceiling in the provider dashboard and a hard stop in your route when the month's counter hits it. Then the worst case is a known number.

Comment