Skip to content
masterclass Buddy

Integrations · Class

ChatOllama

ChatOllama connects LangChain JavaScript chat models to Ollama. Create it with an Ollama model name, then call invoke for one result or stream for incremental chunks.

Last updated

Since
v1.0

Syntax

new ChatOllama({ model: string, temperature?: number, ...options })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseChatModel
  • ChatOllamaCallOptions
  • AIMessageChunk
  • bindTools
  • invoke
  • stream
  • withConfig

Source: ChatOllama | @langchain/ollama. Checked 2026-11-03.