Open WebUI addons come in multiple types. For code execution, this repository contains both a code execution function and a code execution tool. The c

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-09-23 07:00:09

Open WebUI addons come in multiple types. For code execution, this repository contains both a code execution function and a code execution tool.

The code execution function shows up as a button under LLM-generated messages. When you click it, the code in the code block of this message will execute. The output is shown in the UI, and is also available to the LLM for further querying.

Code execution function used to inform the model of the current date, along with demo of gVisor sandboxing and internet reachability.

The code execution tool grants the LLM the ability to run code by itself. This is similar to granting "Web search" access which lets the LLM search the Web by itself. If the LLM decides to use this tool, the tool's output is invisible to you but is available as information for the LLM.

Code execution tool looking up the date, retrieving a webpage that was not in its training set, and performing complex computations.

Leave a Comment