[PR #222] [MERGED] enhance(local runtime): patches prompt messages and replace json load… #381

Closed
opened 2026-02-16 01:15:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/222
Author: @Yeuoly
Created: 4/17/2025
Status: Merged
Merged: 4/17/2025
Merged by: @Yeuoly

Base: mainHead: enhance/removes-llm-result-prompt-messages


📝 Commits (1)

  • a7bd32b enhance(local runtime): patches prompt messages and replace json loads with pydantic

📊 Changes

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

View changed files

📝 internal/core/plugin_manager/local_runtime/environment_python.go (+38 -2)
internal/core/plugin_manager/local_runtime/patches/0.1.1.llm.py.patch (+173 -0)
internal/core/plugin_manager/local_runtime/patches/0.1.1.request_reader.py.patch (+50 -0)

📄 Description

…s with pydantic

  • Introduced two new patch files: 0.1.1.llm.py.patch and 0.1.1.request_reader.py.patch to enhance the plugin's functionality.
  • Updated the environment_python.go file to reference the new patches and apply them conditionally based on the plugin SDK version.
  • Improved the handling of LLM usage and request reading in the plugin environment.

🔄 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-daemon/pull/222 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 4/17/2025 **Status:** ✅ Merged **Merged:** 4/17/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `enhance/removes-llm-result-prompt-messages` --- ### 📝 Commits (1) - [`a7bd32b`](https://github.com/langgenius/dify-plugin-daemon/commit/a7bd32bfa656c58cd558d8fe26e4aa254b48a487) enhance(local runtime): patches prompt messages and replace json loads with pydantic ### 📊 Changes **3 files changed** (+261 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/local_runtime/environment_python.go` (+38 -2) ➕ `internal/core/plugin_manager/local_runtime/patches/0.1.1.llm.py.patch` (+173 -0) ➕ `internal/core/plugin_manager/local_runtime/patches/0.1.1.request_reader.py.patch` (+50 -0) </details> ### 📄 Description …s with pydantic - Introduced two new patch files: `0.1.1.llm.py.patch` and `0.1.1.request_reader.py.patch` to enhance the plugin's functionality. - Updated the `environment_python.go` file to reference the new patches and apply them conditionally based on the plugin SDK version. - Improved the handling of LLM usage and request reading in the plugin environment. --- <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-16 01:15:48 -05:00
yindo closed this issue 2026-02-16 01:15:48 -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-daemon#381