Closed neokd closed 3 months ago
Hi, Assign me this issue as part of JWOC. Do review my current PR
Could you explain more on this issue, like what am i supposed to do exactly?
In the callback_handler.py file, there exists a Token Callback Handler responsible for calculating the generated tokens. To enhance user control, a new feature is expected with the --max-budget flag. This flag allows users to set a predefined maximum budget for a session. If the user surpasses this allocated budget, the session can either be terminated, or it can continue until the specified budget is exhausted.
Make sure you update your fork before working on it. And if any clarifications ping me here.
Understood, lemme give it a try.
Un assigning!
In the
budget_manager.py
file, implement code within thebudget_manager
function to compute the budget and update theTOTAL_COST
. In the chat session, if a user sets a maximum budget and surpasses it, gracefully conclude the session with a message indicating that the budget has been exceeded.