langchain-openai 1.8.0 drops support for Python 3.10, which has reached end-of-life, and raises the minimum supported version to Python 3.11 with langchain-core 1.8.0 as the new minimum. The release adds an OpenAIClassifier for the GA Decisions API.
LangChain (Python)
npx @buildinternet/releases get langchain-pythonlangchain-typesafe 0.1.0 requires Python 3.11 or later and langchain-core 1.8.0, with users on Python 3.10 continuing to resolve 0.0.x. The release also adds TypeSafeClassifier as a decision model and deprecates experimental middleware.
LangChain 1.5.0 drops support for end-of-life Python 3.10, raising the minimum to Python 3.11 and requiring langchain-core 1.8.0 or newer. The release also adds model router and auto mode middleware, with ModelRouterMiddleware marked as beta.
langchain-core 1.8.0 drops support for end-of-life Python 3.10 and now requires Python 3.11 or later. Decision models are also added.
Middleware-internal model calls no longer appear on the messages stream, and ModelRefusalMiddleware omits trace inputs. Dependency security lock resolutions for newer Python versions were patched.
The load() function now caps nesting depth, preventing unbounded recursion during deserialization. Patched security lock resolutions for newer Python dependency sets.
Fireworks now defaults max_tokens from model profiles, and model profile data was refreshed.
Experimental middleware in langchain-typesafe now accepts a classifier argument.
Accumulating runnable streams now merges streamed AIMessageChunks once instead of repeatedly, and parse_partial_json no longer retries one character at a time.
Reranking is promoted out of beta, and streamed token usage is now reported once instead of being double-counted. Response metadata now reports the served model rather than the requested one.
Refusal content blocks from models are now standardized, with langchain-core 1.7.5 or later required for refusal handling.
Model refusals are now emitted as standardized content blocks, and langchain-openai 1.7.4 requires langchain-core 1.7.5 or later for that handling. Model profile data was also refreshed.
Refusals from Anthropic models are now surfaced as standardized refusal content blocks, and Gemini safety blocks are translated into the same format. The package now requires langchain-core 1.7.5 or newer for refusal handling.
Model refusals now come back as standardized refusal content blocks, with Gemini safety blocks translated into them. Tool runs now end on cancellation, and RemoveMessage serialized by LangChain.js loads correctly.
langchain-typesafe reaches its initial stable release, graduating from alpha versions that added TypeSafeClassifier, experimental AutoModeMiddleware and ModelRouterMiddleware, and invocation-scoped classifier questions. Dependency fixes include corrected partner package dependencies and relaxed third-party upper bounds.
Streamed content-block token counts are now reported to callbacks, which previously received incomplete usage data.
This is the last minor line to support Python 3.10; langchain-core 1.8.0 and langchain 1.5.0 drop it, so users should move to Python 3.11 or later. The rest of the release is dependency bumps, including a revert of a patch to vulnerable integration dependencies.
Fixed the Anthropic translator mutating message content. This is the last minor version supporting Python 3.10 — support drops in langchain-core 1.8.0 and langchain 1.5.0, so upgrade to Python 3.11 or later.
Compaction blocks no longer carry an index field, and null cache-creation token counts are now handled instead of failing.
Changes since langchain-core==1.7.2
