
AI Credit Controls
Admin-configurable hard caps and downgrade thresholds for AI credit usage per org. When the cap is hit, new AI requests are blocked with a user-facing message.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Um, so this is all very work in progress, but we've made some pretty big strides in the AI credit controls world. Um, so I want to show off some of the stuff that I've been working on for the past month, so yeah, not sure if we want to share it with customers or not, but here it is.
All right, so um, TLDR, we are making our way through all the different tasks to ultimately support AI credit controls, and what that basically translates to is if I'm an admin, um all the dudes on my org are spending or spending a lot of money on doing lobby queries, I want to make sure that I'm not breaking the bank.
Uh, so I want to set a hard cap on uh how many, you know, or how much how many tokens I can use or I want my organization to use. I want to set a certain downgrade threshold where I clamp down every request to something, you know, cheap model like Haiku, so that's everything I've been working on.
So going to do a quick demo on how some of this works. So if I have a, let's say, let's say I'm a really, really cheap organization with four total Omni blobby credits or four Omni credits, which equates to I don't know what the math is exactly, but equates to not that many tokens. Um, for the month so far I've used 7.611, and I set a hard cap of 200%, so basically I have a hard cap of eight credits.
After eight credits, I don't want any AI requests to run. Um and now, you know, let's say I am di- In this case, I'm two different users, both of which have opened the chat UI, the full page chat UI, um obviously before hitting that hard cap. So, I'm user one, show me some data, please, because I need to impress my boss.
Which I'm literally trying to do, actually. I'm trying to impress my bosses, so. Um Lobby's going to run obviously because Lobby says, "Hey, I'm under the cap or the hard cap. I should be good to run some AI queries. I'm going to do Lobby things." Apologies for making you all watch Lobby do its thing for like the 17th billion time.
Doing stuff. Doing stuff. And really quick, I'm going to refresh this page in the meantime just so that we can see um and it takes a while to load, but that's just the consequence of uh running Omni locally. So, oh, we're having trouble accessing server. That's not fun. Oh, there we go. Cool. So, we can see that the credit usage is bumping up clearly.
Omni's still running. And the hope is that this query bumps me over the limit, which it should because it's doing a lot. Please. Just have it do a visualization. That'll knock you right over. Yeah, that's the hope at least. We got this line chart, so. Nice. All right, perfect. So, we just bumped over our hard hard cap limit of eight credits.
And you'll actually see that while Omni's still running in this case. Um but while Omni's running, we could actually go over here and pretend we're a user two and say, "Hey, I'm finally getting around to using the AI query that I opened. Um show me some data, please." And you'll actually see that we should end up with an error.
Nice. So, user two got an error saying uh something went wrong. And user two is actually getting this message of, "Hey, your credit limit's reached. Um tell your boss to cough up some more cash. Um Actually, if we go back over here, oh. Actually, oh, so I guess uh there's a streaming error just because I assume I assume that's not really related to the credit but what should have happened was the the request have completed and after the request complete or I guess you say the the credit the request that gets you over the limit should complete in its entirety and then the UI will update saying hey, you know, AI agent disabled please contact your administrator.
So Yeah, so again very work in progress. There's plenty of things that we need to get cleaned up and also should note that right now only the full page chat experience is implementing credit controls, but should be pretty trivial fingers crossed to get this implemented on all the various UI AI surfaces we have. So yeah, that's that's credit controls.
All right.