Change8

langchain-ollama==1.1.0

📦 langchainView on GitHub →
3 features🐛 4 fixes🔧 2 symbols

Summary

This release introduces new features for Ollama, including support for `response_format`, `dimensions` in embeddings, and logprobs, alongside several bug fixes and dependency updates.

Migration Steps

  1. Ensure `langchain-core` is at least version 1.2.21 or higher.

✨ New Features

  • Support for `response_format` in Ollama.
  • Added `dimensions` parameter to `OllamaEmbeddings`.
  • Added logprobs support in Ollama.

🐛 Bug Fixes

  • Serialized `reasoning_content` back to Ollama's `thinking` format.
  • Prevented `_convert_messages_to_ollama_messages` from mutating the caller's list.
  • Fixed respect for scheme-less `base_url`.
  • Raise error when Ollama clients are not initialized.

Affected Symbols