You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: The max token and max cost on the bugdeting feature is not working #1456
The budge rule applied to a uset with max token 100, and max cost 0.01, when the user exceeding both limitation, nothing happened.
Steps to reproduce
Login to tale
Navigate to the setting page
Open "Governance" Tabs
Open "Budgets" sub tab
Create new budget rule
Set the max token for 100, max cost is 0.01, and max request is 2 requests
Submit the form
Login to the user that applied to the budget rule earlier.
Navigate to the Chat with AI, send 11 Message with the average token per message need is 14, and the average cost per message is 0.004
Expected behavior
When a bugdet rules are applied to a certain user, that user need to follow everysingle rules applied. When the exceeding the limitation, the user should not be able to perform that action again (stopped) so the rules is not violated.
Affected service
Platform
Version or commit
0.2.26
Browser and OS
No response
Relevant log output
Screenshots or recordings
(Screenshot of the bugdet rules, showing the rules applied to the user)
(Screenshot of the Chat with AI page, showing that user sent buch of request and violated the budget rules without any prevention)
(Screenshot of the open router balance before and after the testing executed)
Before submitting
I searched existing issues and this hasn't been reported yet.
Activity