Repository navigation
Revert ChatGoogle cached_content forwarding - #4900
Merged
Merged
Conversation
Agent Task Evaluation Results: 2/2 (100%)View detailed results
Check the evaluate-tasks job for detailed task execution logs. |
r266-tech
pushed a commit
to r266-tech/browser-use
that referenced
this pull request
May 26, 2026
## Summary - Revert browser-use#4889 (`ChatGoogle.cached_content` field and per-call `cached_content` forwarding). - Remove the now-unused cached-content unit test. ## Why Cloud explicit caching does not need the OSS convenience API: the gateway injects `cached_content` through a copied `ChatGoogle.config` dict on its request-local model. Keeping the public field/kwarg exposes a sharp edge because Gemini rejects cachedContent calls that also send live `system_instruction`, which normal `ChatGoogle` messages can still do. ## Tests - `uv run pytest tests/ci/models/test_llm_google.py -q` - `uv run pre-commit run --all-files` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Reverts `ChatGoogle` `cached_content` forwarding to Gemini and removes the field and per-call passthrough. This avoids Gemini errors when `cachedContent` is sent with live `system_instruction`; the gateway still injects caching, so the obsolete unit test is removed. <sup>Written for commit 22939a2. Summary will update on new commits. <a href="https://cubic.dev/pr/browser-use/browser-use/pull/4900?utm_source=github">Review in cubic</a></sup> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChatGoogle.cached_contentfield and per-callcached_contentforwarding).Why
Cloud explicit caching does not need the OSS convenience API: the gateway injects
cached_contentthrough a copiedChatGoogle.configdict on its request-local model. Keeping the public field/kwarg exposes a sharp edge because Gemini rejects cachedContent calls that also send livesystem_instruction, which normalChatGooglemessages can still do.Tests
uv run pytest tests/ci/models/test_llm_google.py -quv run pre-commit run --all-filesSummary by cubic
Reverts
ChatGooglecached_contentforwarding to Gemini and removes the field and per-call passthrough. This avoids Gemini errors whencachedContentis sent with livesystem_instruction; the gateway still injects caching, so the obsolete unit test is removed.Written for commit 22939a2. Summary will update on new commits. Review in cubic