mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-21 10:05:26 -04:00
[PR #192] [MERGED] Adding ability to install requirements from frontmatter through the /pipelines/add API #344
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/open-webui/pipelines/pull/192
Author: @zabirauf
Created: 8/2/2024
Status: ✅ Merged
Merged: 8/11/2024
Merged by: @tjbck
Base:
main← Head:u/zabirauf/pip-reqs📝 Commits (2)
5ed3719Adding ability to install requirements from frontmatter through the pipelines/add API042a3f8added 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
pipto 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.