EtiennePerot / open-webui-code-execution

Code execution utilities for Open WebUI & Ollama
Apache License 2.0
100 stars 5 forks source link

use an external library #17

Open codeMonkey-shin opened 5 hours ago

codeMonkey-shin commented 5 hours ago

I use minio that provide the file to the corresponding code executor

I'm also going to try a function where the code executor uploads the completed file back to minio.

How do I enable the code executor to use an external library?

EtiennePerot commented 5 hours ago

This is not supported yet. See issue #15.

EtiennePerot commented 5 hours ago

That being said, as a workaround, you can currently pre-install minio in your Docker image and then it will be available to Python code execution, like so:

FROM ghcr.io/open-webui/open-webui:main
RUN pip install minio

Then you can use this image instead of the Open WebUI one, and code execution should be able to use minio.

codeMonkey-shin commented 1 minute ago

Can gvisor use the libraries of the openwebui container?