Skip to content

docs: show usage budget checks#137

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/usage-budget-docs
Open

docs: show usage budget checks#137
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:efe/usage-budget-docs

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • Add a streaming docs example that checks stream.usage.total_tokens against an application budget.
  • Clarify in the core streams guide that usage can drive app-level token budgets, tenant quotas, and workflow limits.
  • Call out that missing provider usage should be handled as an explicit application policy decision.

Why
This keeps rate/spend controls at the application boundary while showing where the SDK exposes provider-normalized usage.

Verification

  • pnpm --dir docs/ai-python install
  • pnpm --dir docs/ai-python build
  • git diff --check

Notes

  • uv run ruff format --check ... does not support MDX files and fails to parse frontmatter, so I used the docs build as the relevant validation.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

@EfeDurmaz16 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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