Skip to content

Add Documentation for Qwen3 Extended Thinking Support in ChatOllama #31633

Open
@yebanliuying

Description

@yebanliuying

Checked other resources

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
  • I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.

Example Code

might like to close the thinking:

from langchain_ollama import ChatOllama

from internal.core.language_model.entities.model_entity import BaseLanguageModel

llm = ChatOllama(
    model="qwen3:8",
    model_kwargs={"think": False}
)

Error Message and Stack Trace (if applicable)

No response

Description

I hope to directly close the thinking model through parameters instead of outputting thetag

System Info

ollama 0.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤖:docsChanges to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions