[PR #192] [MERGED] Adding ability to install requirements from frontmatter through the /pipelines/add API #344

Closed
opened 2026-02-15 20:15:11 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/192
Author: @zabirauf
Created: 8/2/2024
Status: Merged
Merged: 8/11/2024
Merged by: @tjbck

Base: mainHead: u/zabirauf/pip-reqs


📝 Commits (2)

  • 5ed3719 Adding ability to install requirements from frontmatter through the pipelines/add API
  • 042a3f8 added import

📊 Changes

1 file changed (+36 additions, -2 deletions)

View changed files

📝 main.py (+36 -2)

📄 Description

Solves the issue #188

Issue: The frontmatter "requirements" field is not respected when pipeline is added through the /pipelines/add API, which is what OpenWebUI uses.

Solution: As part of loading the module, extract frontmatter, run pip to install the requirements before loading the module.

This should match the behavior similar to what start.sh doesn.


🔄 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/open-webui/pipelines/pull/192 **Author:** [@zabirauf](https://github.com/zabirauf) **Created:** 8/2/2024 **Status:** ✅ Merged **Merged:** 8/11/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `u/zabirauf/pip-reqs` --- ### 📝 Commits (2) - [`5ed3719`](https://github.com/open-webui/pipelines/commit/5ed3719a8b0e2f632f7eb325c34ad60a42131ace) Adding ability to install requirements from frontmatter through the pipelines/add API - [`042a3f8`](https://github.com/open-webui/pipelines/commit/042a3f87277f30fa3450f5c15e3841c02c0fdeb9) added import ### 📊 Changes **1 file changed** (+36 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `main.py` (+36 -2) </details> ### 📄 Description Solves the issue #188 Issue: The frontmatter "requirements" field is not respected when pipeline is added through the /pipelines/add API, which is what OpenWebUI uses. Solution: As part of loading the module, extract frontmatter, run `pip` to install the requirements before loading the module. This should match the behavior similar to what start.sh doesn. --- <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 20:15:11 -05:00
yindo closed this issue 2026-02-15 20:15:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#344