You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sx...@apache.org on 2025/09/16 01:42:05 UTC
(flink-agents) branch main updated: [Feature] Change default value of extract_reasoning in OllamaChatModelSetup to true (#167)
This is an automated email from the ASF dual-hosted git repository.
sxnan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git
The following commit(s) were added to refs/heads/main by this push:
new 77025fa [Feature] Change default value of extract_reasoning in OllamaChatModelSetup to true (#167)
77025fa is described below
commit 77025fa8286803e371048751df5c519501a5fbe5
Author: Eugene <me...@gmail.com>
AuthorDate: Tue Sep 16 09:41:59 2025 +0800
[Feature] Change default value of extract_reasoning in OllamaChatModelSetup to true (#167)
This closes #146.
---
python/flink_agents/integrations/chat_models/ollama_chat_model.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/flink_agents/integrations/chat_models/ollama_chat_model.py b/python/flink_agents/integrations/chat_models/ollama_chat_model.py
index fa9935f..59bbb48 100644
--- a/python/flink_agents/integrations/chat_models/ollama_chat_model.py
+++ b/python/flink_agents/integrations/chat_models/ollama_chat_model.py
@@ -203,7 +203,7 @@ class OllamaChatModelSetup(BaseChatModelSetup):
"request(default: 5m)",
)
extract_reasoning: bool = Field(
- default=False,
+ default=True,
description="If True, extracts content within <think></think> tags from the response and "
"stores it in additional_kwargs.",
)
@@ -216,7 +216,7 @@ class OllamaChatModelSetup(BaseChatModelSetup):
request_timeout: Optional[float] = DEFAULT_REQUEST_TIMEOUT,
additional_kwargs: Optional[Dict[str, Any]] = None,
keep_alive: Optional[Union[float, str]] = None,
- extract_reasoning: Optional[bool] = False,
+ extract_reasoning: Optional[bool] = True,
**kwargs: Any,
) -> None:
"""Init method."""