Skip to content

Improve freebuff request throughput#651

Merged
jahooma merged 1 commit into
mainfrom
jahooma/freebuff-throughput-ideas
May 12, 2026
Merged

Improve freebuff request throughput#651
jahooma merged 1 commit into
mainfrom
jahooma/freebuff-throughput-ideas

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 12, 2026

Summary

Reduce freebuff hot-path load by skipping paid usage/subscription checks, avoiding duplicate country checks for active waiting-room sessions, and sampling successful freebuff analytics/logs.
Keep freebuff message rows for abuse detection and admin trace visibility while bypassing grant consumption, credit analytics, and Stripe metering for zero-credit allowed free-mode completions.

Validation

  • bun test web/src/app/api/v1/chat/completions/tests/completions.test.ts
  • bun --filter='@codebuff/billing' run typecheck
  • bun --filter='@codebuff/web' run typecheck
  • git diff --check

@jahooma jahooma merged commit d9783f1 into main May 12, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/freebuff-throughput-ideas branch May 12, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant