[Enhancement]: Automatic Balance refill #6275
Replies: 6 comments 4 replies
-
I already have an idea for this but not using a cronjob. because then we also update the users that are not that active. maybe do it during login and as well based on a new item when the last daily limit has reached and you send a chat it will then automatically check you balance and if it passes the old daily limit date time it will fill-up your balance with the daily limit. something like this. is just an idea |
Beta Was this translation helpful? Give feedback.
-
We also implemented this, although for all users equally. Basically this is our code that we ran each month to reset the balance. You run it inside the mongo container.
|
Beta Was this translation helpful? Give feedback.
-
@Odrec uh? but this Is for everyone is same then? and you need to run it manually, and that's not the goal? |
Beta Was this translation helpful? Give feedback.
-
We configured to run it as a service like this
and then we set the timer
But yeah is to set the balance equally to everyone. |
Beta Was this translation helpful? Give feedback.
-
I currently have the following workflow: on container level
inside container levelCron.js runs on a specified time (in .env), im my case daily, and does the following, all inside the librechat container and having access to the npm scripts.
likes and dislikesI see there are a LOT of unnessecary transaction going on there, especially for all the users who have not touched their balance.
|
Beta Was this translation helpful? Give feedback.
-
works great 👌 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
I propose an automatic balance refiller.
It basically works as a cronjob which resets all users credits to a certain amount. I've already implemented it (though ugly).
Community, what do you say? Is that a feature you would like to see?
I also created two seperate "Levels":
Heavy users can have more credits per day.
All that logic contributes to users to think about trying out new models and testing every model without thinking about the money they spend.
More details
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions