Skip to content

Think parameter does not seem to work with Qwen3 #529

Description

@GuillaumeNachury

Based on this blog post https://ollama.com/blog/thinking the think parameter should be working with the Qwen3 model.

Using the latest version (0.5.1) of the lib:

pip show ollama
Name: ollama
Version: 0.5.1
Summary: The official Python client for Ollama.
Home-page: https://ollama.com
Author: 
Author-email: hello@ollama.com
License: 

Model: qwen3:14b

Then using the lib with streaming and tools but thinking disable
chat(self.default_model, messages, stream=True, think=False, tools=tools)

The <think>xxxxxx</think> block is always returned within the response.

Is there there a known issue with this combination of model+options (tool/stream/think) ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions