Skip to content

Comments

feat: user cost#126

Open
wjiayis wants to merge 5 commits intostagingfrom
feat/user-cost
Open

feat: user cost#126
wjiayis wants to merge 5 commits intostagingfrom
feat/user-cost

Conversation

@wjiayis
Copy link
Member

@wjiayis wjiayis commented Feb 19, 2026

#58

Frontend

Screenshot 2026-02-21 at 4 27 22 PM

Database

docker exec mongodb mongosh --quiet paperdebugger --eval "db.llm_sessions.find().forEach(d => printjson(d))"

{
  _id: ObjectId('699950cddf3315112ae7e9bb'),
  user_id: ObjectId('6975da46d6096ac1b07342c2'),
  session_start: ISODate('2026-02-21T06:29:33.980Z'),
  session_expiry: ISODate('2026-02-21T11:29:33.980Z'),
  prompt_tokens: Long('27834'),
  completion_tokens: Long('917'),
  total_tokens: Long('28751'),
  request_count: Long('6')
}

Questions

Are we going to implement a per-user usage cap?

@wjiayis wjiayis self-assigned this Feb 19, 2026
@wjiayis wjiayis added the enhancement New feature or request label Feb 19, 2026
@wjiayis wjiayis changed the base branch from main to staging February 19, 2026 12:00
@wjiayis wjiayis force-pushed the feat/user-cost branch 3 times, most recently from b9bda9c to 4206592 Compare February 21, 2026 06:43
@wjiayis wjiayis marked this pull request as ready for review February 21, 2026 08:26
@wjiayis wjiayis requested review from 4ndrelim and Junyi-99 and removed request for Junyi-99 February 21, 2026 08:26
@Junyi-99
Copy link
Member

Hi @wjiayis , thanks for another great contribution!

regarding your question: yes, we do need a per-user usage cap.

thanks again!

@wjiayis
Copy link
Member Author

wjiayis commented Feb 22, 2026

@Junyi-99 No problem! Yea cool, feel free let me know the token limit you decide to have! I feel that having some sort of progress bar would make more sense than the absolute token number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants