-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Description
When attempting to plot stock prices using the code execution tool, it only runs the bash script for package installation but fails to execute the subsequent Python code. Additionally, it creates an excessive number of files (over 1000) during this process.
General information
- Open WebUI version:
v0.3.23
- Tool/function version:
0.6.0
- Open WebUI setup:
- Kernel information:
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
- Runtime:
Docker
- If running in Docker:
- Docker version:
Docker version 26.1.4, build 5650f9b
docker run
command:docker run --privileged=true --cgroupns=host -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
- Docker container info: https://raw.githubusercontent.com/smuotoe/open-webui-code-execution/refs/heads/master/docker_inspect.txt
- Docker version:
- Kernel information:
Steps to Reproduce
- Use the Open WebUI with the code execution function enabled.
- Submit the following prompt to the LLM: "plot the stock price of Apple, Tesla, Nvidia and Microsoft YTD"
- The LLM typically responds with two code blocks:
a. A bash script to install required packages
b. Python code to create the stock price plot - Attempt to run the provided code using the "Run code" button at the end of the response.
Expected Behavior
The tool should:
- Execute the bash script to install required packages
- Run the Python code to create and display the stock price plot
- Create only necessary files related to the plot or temporary data
Actual Behavior
The tool:
- Executes the bash script for package installation
- Creates over 1000 files in the process. Full disclosure, I increased the max file limit to 2048, else, it results in an error.
- Stops execution after the bash script, failing to run the Python code
- Does not produce the expected stock price plot.
Metadata
Metadata
Assignees
Labels
No labels