Skip to content

@langchain/openai@1.5.9

Choose a tag to compare

@github-actions github-actions released this 20 Aug 01:17
e493ed6

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.