unstale

npm / @langchain/ollama

@langchain/ollama

What changed in @langchain/ollama 0.3 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

1 breaking1 security5 new APIs and options2 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

@langchain/ollama 113 changes

Breaking changes 1

  • When aborted during streaming with streaming callback handlers, invoke() throws ModelAbortError containing the accumulated partialOutput; an already-aborted signal is checked immediately.

    1.2.2release notes

New APIs and options 5

  • Structured output now supports standard schema, allowing developers to use standard schemas with Ollama.

    1.2.6release notes

  • The Ollama LLM class now supports the think parameter.

    1.2.0release notes

  • Adds support for specifying a custom baseUrl.

    1.1.0release notes

  • Adds support for native structured outputs in Ollama.

    1.1.0release notes

  • Thinking content is separated into the reasoning_content field.

    1.0.3release notes

Behavior and default changes 2

  • Adds native streamEvents event conversion for Ollama.

    1.3.0release notes

  • Runnable traces include package version metadata in LangSmith trace metadata, stamped at construction time.

    1.2.5release notes

Fixes and other changes 5

  • Preserves tool_calls when AIMessage content is a string.

    1.2.3release notes

  • stream() throws a regular AbortError when aborted, and streaming loops check abort signals so cancellation returns early.

    1.2.2release notes

  • Sets additional_kwargs.reasoning_content when using streamEvents via createAgent.

    1.2.1release notes

  • Reasoning tokens are now properly elevated.

    1.2.0release notes

  • Fix compatibility with moduleResolution set to node.

    1.0.2release notes

@langchain/ollama 0.31 changes

Security 1