[PR #268] Adapt to the Ollama reasoning platform and use the "reasoning" JSON k… #274

Open
opened 2026-02-15 21:16:32 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/268
Author: @zhujunling-nj
Created: 12/21/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (5)

  • b299cf8 Adapt to the Ollama reasoning platform and use the "reasoning" JSON key to return the reasoning content
  • e84c4de update method document.
  • 3f7b316 add tests
  • 3a676fc add content chunk
  • 307a260 Merge branch 'main' into main

📊 Changes

2 files changed (+152 additions, -3 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/large_language_model.py (+4 -3)
python/tests/interfaces/model/test_llm_ollama_adapter.py (+148 -0)

📄 Description

…ey to return the reasoning content

Pull Request Checklist

Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:

Compatibility Check

  • I have checked whether this change affects the backward compatibility of the plugin declared in README.md
  • I have checked whether this change affects the forward compatibility of the plugin declared in README.md
  • If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the README.md
  • I have described the compatibility impact and the corresponding version number in the PR description
  • I have checked whether the plugin version is updated in the README.md

Available Checks

  • Code has passed local tests
  • Relevant documentation has been updated (if necessary)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/268 **Author:** [@zhujunling-nj](https://github.com/zhujunling-nj) **Created:** 12/21/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`b299cf8`](https://github.com/langgenius/dify-plugin-sdks/commit/b299cf86e822f8726e2fe1dbe3e6507220d21c1b) Adapt to the Ollama reasoning platform and use the "reasoning" JSON key to return the reasoning content - [`e84c4de`](https://github.com/langgenius/dify-plugin-sdks/commit/e84c4de811051a76f64a9d44b99d10290cba2644) update method document. - [`3f7b316`](https://github.com/langgenius/dify-plugin-sdks/commit/3f7b316c0dd2378dee92e8635766cc72b3243f72) add tests - [`3a676fc`](https://github.com/langgenius/dify-plugin-sdks/commit/3a676fc900d01d9dd6b29ed45a5cff34b00adb56) add content chunk - [`307a260`](https://github.com/langgenius/dify-plugin-sdks/commit/307a26054f7c2282eee12ac02fc15b7c07e439f2) Merge branch 'main' into main ### 📊 Changes **2 files changed** (+152 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/large_language_model.py` (+4 -3) ➕ `python/tests/interfaces/model/test_llm_ollama_adapter.py` (+148 -0) </details> ### 📄 Description …ey to return the reasoning content # Pull Request Checklist Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks: ## Compatibility Check - [x] I have checked whether this change affects the **backward compatibility** of the plugin declared in `README.md` - [x] I have checked whether this change affects the **forward compatibility** of the plugin declared in `README.md` - [x] If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the `README.md` - [x] I have described the compatibility impact and the corresponding version number in the PR description - [x] I have checked whether the plugin version is updated in the `README.md` ## Available Checks - [x] Code has passed local tests - [x] Relevant documentation has been updated (if necessary) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#274