releaseintermediate
[Release] langchain-ai/langchain langchain-ollama==1.1.0: langchain-ollama==1.1.0
By github-actions[bot]github
View original on githublangchain-ollama version 1.1.0 introduces several new features and improvements including support for response_format, logprobs, and embedding dimensions, along with critical bug fixes for message serialization and base_url handling. The release includes dependency updates for security (CVE-2026-4539), improved error handling, and code quality enhancements across the Ollama integration package.
Key Points
- •Added `response_format` support to enable structured output control in Ollama models
- •Implemented logprobs support for token probability logging in Ollama completions
- •Added `dimensions` parameter to OllamaEmbeddings for flexible embedding size configuration
- •Fixed `reasoning_content` serialization to properly map back to Ollama's `thinking` field
- •Resolved message mutation bug in `_convert_messages_to_ollama_messages` to prevent caller list modification
- •Fixed scheme-less `base_url` handling to respect URLs without explicit protocol specification
- •Upgraded security-critical dependencies including pygments (CVE-2026-4539) and urllib3
- •Bumped langchain-core minimum version to 1.2.21 for compatibility
- •Added error handling to raise exceptions when Ollama clients are not properly initialized
- •Migrated to `ty` type checking tool and added typing targets to build system
Found this useful? Add it to a playbook for a step-by-step implementation guide.
Workflow Diagram
Start Process
Step A
Step B
Step C
Complete