Skip to content

Bug: The max token and max cost on the bugdeting feature is not working #1456

Closed

Description

@MohRamadan24

What happened?

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

  1. Login to tale
  2. Navigate to the setting page
  3. Open "Governance" Tabs
  4. Open "Budgets" sub tab
  5. Create new budget rule
  6. Set the max token for 100, max cost is 0.01, and max request is 2 requests
  7. Submit the form
  8. Login to the user that applied to the budget rule earlier.
  9. 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

Image (Screenshot of the bugdet rules, showing the rules applied to the user) Image (Screenshot of the Chat with AI page, showing that user sent buch of request and violated the budget rules without any prevention) Image (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugservice: platform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions