Skip to content

fix(gen): downgrade langchain-google-genai - #129

Merged
alpkom merged 2 commits into
mainfrom
downgrade-langchain-google-genai
Sep 8, 2026
Merged

alpkom merged 2 commits into
mainfrom
downgrade-langchain-google-genai

Conversation

@alpkom

@alpkom alpkom commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Context

Downgrade langchain-google-genai.

What this PR does and why it is needed

Downgrade langchain-google-genai, as it was auto-updated again. Auto-merge for renovate has been disabled in another PR.

@alpkom
alpkom requested review from mwien and yamaceay September 8, 2026 13:04
@alpkom
alpkom merged commit eb33279 into main Sep 8, 2026
15 checks passed
@alpkom
alpkom deleted the downgrade-langchain-google-genai branch September 8, 2026 13:32
friedrichwilken added a commit to friedrichwilken/ai-sdk-python that referenced this pull request Sep 24, 2026
The SDK's ChatGoogleGenerativeAI shadows the upstream `validate_environment`
validator to inject the AI Core client. Since langchain-google-genai 4.3.7 that
upstream validator also registers the client with a `_ClientCleanup` object
which the `async_client` property and `aclose()` dereference, so every async
call failed with AttributeError. Register the injected client in our own
`_initialize_client` validator instead, add a unit test covering
`async_client` and `aclose()`, lift the `<4.3.7` pin introduced as a stopgap
in SAP#122/SAP#129, and update the stale pin in README_sphynx.md.

Refs SAP#152
friedrichwilken added a commit to friedrichwilken/ai-sdk-python that referenced this pull request Sep 24, 2026
The SDK's ChatGoogleGenerativeAI shadows the upstream `validate_environment`
validator to inject the AI Core client. Since langchain-google-genai 4.3.7 that
upstream validator also registers the client with a `_ClientCleanup` object
which the `async_client` property and `aclose()` dereference, so every async
call failed with AttributeError. Register the injected client in a validator
of our own on the chat class, add a unit test covering `async_client` and
`aclose()`, lift the `<4.3.7` pin introduced as a stopgap in SAP#122/SAP#129, and
update the stale pin in README_sphynx.md.

Refs SAP#152
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.

2 participants