From Dev.to
How I cap OpenAI spending per user in ASP.NET Core
A per-user spending limit needs to affect whether an application sends a request. Recording token usage afterward helps explain costs, but it cannot prevent several concurrent requests from starting a...
