Fixes ChatGoogleGenerativeAI to ChatOpenAI message conversion
LangChain fixes ChatGoogleGenerativeAI to ChatOpenAI message conversion to enable cross-provider handoffs.
Patch Changes #11399 `5c9fdf2` Thanks @gethin-langchain! - update to v7 openai sdk #11403 `fe8eec1` Thanks @thushanth-bengre-langchain! - Drop Gemini-native `functionCall` content blocks (already carried in `tool_calls`) when converting messages to Chat Completions API params, fixing requests that fail when a `ChatGoogleGenerativeAI` message is passed to `ChatOpenAI` (e.g.
a cross-provider handoff in LangGraph). #11399 `5c9fdf2` Thanks @gethin-langchain! - Map OpenAI's `cache_write_tokens` to `cache_creation` in `usage_metadata.input_token_details`, mirroring the existing `cached_tokens` -> `cache_read` mapping across the Chat Completions and Responses APIs. Previously, prompt cache-write token counts were silently dropped.
- github.comLangChain (JS) — openai v1.5.9primary