run code

tool

allows the model to run code in its responses

sinaimhw
@sinaimhw
·
2 years ago
453
0
1.4K
Updated 2 years ago
Created Mar 20, 2025
run_code.py
Python · 175 lines
"""
title: "Secure Code Executor"
author: Wes Caldwell
description: "Executes Python and Shell code in isolated environments with safety controls"
required_open_webui_version: "0.5.0"
requirements:
version: "1.3"
license: "MIT"
"""

import asyncio
import os

allows the model to run code in its responses


0