Files
langchain/libs/partners/ollama
Mason Daugherty 0346ac0fa2 fix(ollama): trace invoke model override (#37502)
If you override the model at invoke time — e.g. `chat.invoke(messages,
model="llama3.2")` or `chat.bind(model="llama3.2")` - traces previously
logged the model the `ChatOllama` instance was constructed with, not the
one that ran. Tracing now reflects the runtime override, so dashboards,
filters, and cost/latency breakdowns line up with what really executed.
2026-05-18 13:51:35 -05:00
..

langchain-ollama

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

Quick Install

pip install langchain-ollama

🤔 What is this?

This package contains the LangChain integration with Ollama

📖 Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.

📕 Releases & Versioning

See our Releases and Versioning policies.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.