Skip to content

Gemini Response Streaming#1699

Merged
TimPansino merged 21 commits intomainfrom
feat-gemini-streaming
Mar 31, 2026
Merged

Gemini Response Streaming#1699
TimPansino merged 21 commits intomainfrom
feat-gemini-streaming

Conversation

@TimPansino
Copy link
Copy Markdown
Contributor

@TimPansino TimPansino commented Mar 27, 2026

Overview

  • Add response streaming support to Gemini through the google.genai package.
  • Overhaul test suite to use the included ReplayApiClient from the package to offload development and maintenance of mock server to Google.
    • Re-recorded all responses as a result of this change.

Note for Reviewers: There is a new replays folder with 30,000+ lines of JSON. These are responses from the server that have been recorded by the SDK, not human generated (aside from editing the message contents to all match). I would advise against reading more than one invoke and one stream file for your own sake.

@TimPansino TimPansino requested a review from a team as a code owner March 27, 2026 21:34
@TimPansino TimPansino force-pushed the feat-gemini-streaming branch from 596d61d to 438ba0d Compare March 27, 2026 21:34
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 27, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 8 0 0 0.99s
✅ MARKDOWN markdownlint 7 0 0 0 1.48s
✅ PYTHON ruff 1029 0 0 0 1.03s
✅ PYTHON ruff-format 1029 0 0 0 0.42s
✅ YAML prettier 19 0 0 0 1.65s
✅ YAML v8r 19 0 0 5.35s
✅ YAML yamllint 19 0 0 0.75s

See detailed reports in MegaLinter artifacts

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

@mergify mergify bot added the tests-failing Tests failing in CI. label Mar 27, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.96%. Comparing base (b571894) to head (9aecee2).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_gemini.py 91.00% 8 Missing and 1 partial ⚠️
newrelic/common/llm_utils.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1699      +/-   ##
==========================================
+ Coverage   81.90%   81.96%   +0.06%     
==========================================
  Files         214      214              
  Lines       25709    25803      +94     
  Branches     4076     4082       +6     
==========================================
+ Hits        21056    21150      +94     
+ Misses       3259     3257       -2     
- Partials     1394     1396       +2     

☔ 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.

@mergify mergify bot removed the tests-failing Tests failing in CI. label Mar 27, 2026
@mergify mergify bot added the tests-failing Tests failing in CI. label Mar 27, 2026
@mergify mergify bot removed the tests-failing Tests failing in CI. label Mar 30, 2026
@mergify mergify bot added the tests-failing Tests failing in CI. label Mar 30, 2026
@mergify mergify bot removed the tests-failing Tests failing in CI. label Mar 30, 2026
@TimPansino TimPansino merged commit 1e0a131 into main Mar 31, 2026
107 of 109 checks passed
@TimPansino TimPansino deleted the feat-gemini-streaming branch March 31, 2026 16:32
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.

3 participants