Skip to content

Gemini Token Counting#1750

Open
TimPansino wants to merge 5 commits into
mainfrom
feat-gemini-token-counting
Open

Gemini Token Counting#1750
TimPansino wants to merge 5 commits into
mainfrom
feat-gemini-token-counting

Conversation

@TimPansino
Copy link
Copy Markdown
Contributor

Overview

  • Add token counting to Google GenAI SDK for all LLM invocations.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 8 0 0 0.94s
✅ MARKDOWN markdownlint 7 0 0 0 1.37s
✅ PYTHON ruff 1038 0 0 0 1.09s
✅ PYTHON ruff-format 1038 0 0 0 0.39s
✅ YAML prettier 20 0 0 0 1.63s
✅ YAML v8r 20 0 0 6.4s
✅ YAML yamllint 20 0 0 0.69s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 2, 2026

Codecov Report

❌ Patch coverage is 70.21277% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.10%. Comparing base (c972036) to head (a56e71a).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_gemini.py 70.21% 4 Missing and 10 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1750      +/-   ##
==========================================
+ Coverage   82.08%   82.10%   +0.01%     
==========================================
  Files         215      215              
  Lines       26324    26349      +25     
  Branches     4153     4160       +7     
==========================================
+ Hits        21609    21633      +24     
+ Misses       3300     3297       -3     
- Partials     1415     1419       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 2, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 2, 2026
@TimPansino TimPansino marked this pull request as ready for review June 3, 2026 17:51
@TimPansino TimPansino requested a review from a team as a code owner June 3, 2026 17:51
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-failing Tests failing in CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants