Skip to content

[Integration][ChatModel] Add reasoning extraction in OllamaChatModel#101

Merged
xintongsong merged 1 commit into
apache:mainfrom
twosom:add_ollama_extract_reasoning
Aug 11, 2025
Merged

[Integration][ChatModel] Add reasoning extraction in OllamaChatModel#101
xintongsong merged 1 commit into
apache:mainfrom
twosom:add_ollama_extract_reasoning

Conversation

@twosom
Copy link
Copy Markdown
Contributor

@twosom twosom commented Aug 9, 2025

Linked issue: #100

Purpose of change

Add an optional boolean flag extract_reasoning to OllamaChatModel allowing intermediate reasoning enclosed in <think>...</think> blocks (produced by reasoning-capable models like deepseek-r1) to be separated from the user-visible answer.

Tests

unit test

API

no

Documentation

no

Copy link
Copy Markdown
Contributor

@xintongsong xintongsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twosom Thanks for you contribution. This is a really good feature. LGTM, merging.

@xintongsong xintongsong merged commit fa6dd85 into apache:main Aug 11, 2025
15 checks passed
@xintongsong xintongsong added this to the 0.1.0 milestone Sep 12, 2025
@Sxnan Sxnan added priority/major Default priority of the PR or issue. fixVersion/0.1.0 The feature or bug should be implemented/fixed in the 0.1.0 version. doc-not-needed Your PR changes do not impact docs labels Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.1.0 The feature or bug should be implemented/fixed in the 0.1.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants