Skip to content

fix(console): bill google non-stream zen usage#28829

Merged
fwang merged 3 commits into
devfrom
fix/zen-google-nonstream-billing
May 25, 2026
Merged

fix(console): bill google non-stream zen usage#28829
fwang merged 3 commits into
devfrom
fix/zen-google-nonstream-billing

Conversation

@MrMushrooooom
Copy link
Copy Markdown
Contributor

@MrMushrooooom MrMushrooooom commented May 22, 2026

Summary

  • add provider-specific non-stream usage extraction for Zen billing
  • read Google generateContent usage from usageMetadata

Tests

  • bun test test/providerUsage.test.ts
  • bun typecheck

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. labels May 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@MrMushrooooom MrMushrooooom requested a review from fwang May 22, 2026 12:22
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 22, 2026
@github-actions github-actions Bot closed this May 22, 2026
@fwang fwang reopened this May 25, 2026
@fwang fwang merged commit e1406e0 into dev May 25, 2026
15 of 16 checks passed
@fwang fwang deleted the fix/zen-google-nonstream-billing branch May 25, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants