Agent Frameworks

langchain-core==1.2.11

A critical bug fix for OpenAI image token counting just dropped...

Deep Dive

LangChain has released version 1.2.11 of its core library, addressing a critical security fix for OpenAI integrations. The update sanitizes URLs when counting tokens in images, preventing potential vulnerabilities. It also includes cleanup of redundant logic and docstring mismatches, and replaces a bare exception in the tracer with a proper `Exception` catch. This patch release follows version 1.2.10 and is part of ongoing maintenance for the massively popular 126k-star framework.

Why It Matters

This patch prevents potential security issues and incorrect billing for developers using OpenAI's vision models with LangChain.