Skip to content

Guard Workers AI calls with shared daily budget - #63

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
fix/shared-workers-ai-budget
Oct 2, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
fix/shared-workers-ai-budget

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Closes #62. Routes all Workers AI binding calls through the shared daily neuron budget before each provider attempt. Enforces the exact priced model, conservative serialized UTF-8 input reservation, default 512 / hard maximum 8192 output tokens, strict current-day receipt, and typed fail-closed denial. Preserves BYOK and provider receiver; budget denials do not trigger external-provider fallback. Also updates vulnerable transitive devalue to its patched version. Verified with full pnpm quality and the repository CI checks. No deployment performed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
reader cc686bf Oct 02 2026, 09:24 AM

@sarthakagrawal927
sarthakagrawal927 merged commit 39fba44 into main Oct 2, 2026
2 checks passed
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.

Guard Workers AI calls with the shared daily neuron budget

1 participant