mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2117] [MERGED] fix it ignores the 'thinking' field in streamed responses from the ollama #2271
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/2117
Author: @zhangyy130
Created: 11/21/2025
Status: ✅ Merged
Merged: 11/24/2025
Merged by: @crazywoola
Base:
main← Head:fix_ollama_ignores_thinking📝 Commits (8)
bf83a6efix it ignores the 'thinking' field in streamed responses from the Ollama API and only forwards the 'content' field to Dify25a1fd6fixfb1fb97fix726d203Merge branch 'main' into fix_ollama_ignores_thinkingd1bbb05Merge branch 'main' of https://github.com/zhangyy130/dify-official-plugins into fix_ollama_ignores_thinkingb646d2bfixe2d8237Merge remote-tracking branch 'origin/fix_ollama_ignores_thinking' into fix_ollama_ignores_thinking1320c1dfix📊 Changes
2 files changed (+32 additions, -23 deletions)
View changed files
📝
models/ollama/manifest.yaml(+1 -1)📝
models/ollama/models/llm/llm.py(+31 -22)📄 Description
ollama plugin ignores the 'thinking' field in streamed responses from the Ollama API and only forwards the 'content' field to Dify
Refer to the parent class "dify_plugin.interfaces.model.large_language_model.LargeLanguageModel" to implement the function _wrap_thinking_by_reasoning_content.
Related Issues or Context
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.