EtiennePerot / safe-code-execution

Code execution utilities for Open WebUI & Ollama
Apache License 2.0
193 stars 12 forks source link

Function to select when there are multiple code blocks #24

Closed codeMonkey-shin closed 1 month ago

codeMonkey-shin commented 1 month ago

When you tell it to write code that uses an external library, chatgpt often even writes a pip install command. At this time, when you run the code, the pip install command is executed, not the Python code. Also, if multiple python codes are output, code execution becomes confusing. Therefore, it seems necessary to have a function that allows the user to select and execute a specific code block.

EtiennePerot commented 1 month ago

I agree, but closing as this issue is a duplicate of issue #15.