[PR #130] [MERGED] feat(endpoint): support declare endpoints in groups #167

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/130
Author: @Yeuoly
Created: 5/6/2025
Status: Merged
Merged: 5/6/2025
Merged by: @Yeuoly

Base: mainHead: feat/support-add-endpoints-in-group


📝 Commits (1)

  • f60d5ce feat(endpoint): support declare endpoints in groups

📊 Changes

2 files changed (+66 additions, -2 deletions)

View changed files

📝 python/dify_plugin/entities/endpoint.py (+13 -2)
python/tests/entities/endpoint/test_endpoint_group.py (+53 -0)

📄 Description

  • Introduced a class method _load_yaml_file to encapsulate YAML file loading logic.
  • Enhanced the validate_endpoints method to support both direct endpoint configurations and YAML file paths.
  • Added unit tests for loading endpoint configurations from YAML strings and files.

🔄 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/130 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/6/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/support-add-endpoints-in-group` --- ### 📝 Commits (1) - [`f60d5ce`](https://github.com/langgenius/dify-plugin-sdks/commit/f60d5ce5c3aaf0486fefc47ec86b12bb2d56f598) feat(endpoint): support declare endpoints in groups ### 📊 Changes **2 files changed** (+66 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/entities/endpoint.py` (+13 -2) ➕ `python/tests/entities/endpoint/test_endpoint_group.py` (+53 -0) </details> ### 📄 Description - Introduced a class method `_load_yaml_file` to encapsulate YAML file loading logic. - Enhanced the `validate_endpoints` method to support both direct endpoint configurations and YAML file paths. - Added unit tests for loading endpoint configurations from YAML strings and files. --- <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:03 -05:00
yindo closed this issue 2026-02-15 21:16:03 -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#167