Skip to content

Bug: The max request on the budget rules is not working #1452

Closed

Description

@MohRamadan24

What happened?

When budget rules applied to a user with max request is 2 requests, when that user already passed the max 2 request, 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 request for 2, and the warning threshold for 50%
  7. Submit the form
  8. Login to the user that applied to the budget rule earlier.
  9. Navigate to the Chat with AI, send 3 message.

Expected behavior

When the mx request is already passed, the user should not be able to make any request to the ai, with notification displayed that the limit reached and the extimation time that user will be able to make a request again, for every single request sent after the limit reached.

Affected service

Platform

Version or commit

0.2.26

Browser and OS

No response

Relevant log output

Screenshots or recordings

Image (Screeshot of the budget rule list, showing the max request applied) Image (Screenshot of the Chat with AI page, showing that the user already passed the max 3 request)

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