mirror of
https://github.com/open-webui/docs
synced 2025-06-16 11:28:36 +00:00
Merge pull request #440 from thiswillbeyourgithub/add_missing_doc_for_frontmatter_requirements
enh: add frontmatter documentation to pip install requirements
This commit is contained in:
commit
5e26f49c62
@ -310,3 +310,30 @@ async def test_function(
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## External packages
|
||||||
|
|
||||||
|
In the Tools definition metadata you can specify custom packages. When you click `Save` the line will be parsed and `pip install` will be run on all requirements at once.
|
||||||
|
|
||||||
|
Keep in mind that as pip is used in the same process as Open-WebUI, the UI will be completely unresponsive during the installation.
|
||||||
|
|
||||||
|
No measures are taken to handle package conflicts with Open-WebUI's requirements. That means that specifying requirements can break OpenWebUI if you're not careful. You might be able to work around this by specifying `open-webui` itself as a requirement.
|
||||||
|
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Example</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
title: myToolName
|
||||||
|
author: myName
|
||||||
|
funding_url: [any link here will be shown behind a `Heart` button for users to show their support to you]
|
||||||
|
version: 1.0.0
|
||||||
|
# the version is displayed in the UI to help users keep track of updates.
|
||||||
|
license: GPLv3
|
||||||
|
description: [recommended]
|
||||||
|
requirements: package1>=2.7.0,package2,package3
|
||||||
|
"""
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
Loading…
Reference in New Issue
Block a user