3 ms·
Does the SDK allow executing Python code generated in some sort of sandbox? If not are there any open source library which does this for us? I would ideally lik
by theuppermiddle 2y ago
Does the SDK allow executing Python code generated in some sort of sandbox? If not are there any open source library which does this for us?
I would ideally like the state of the code executed, including return values, available for the entire chat session, like IPython, so that subsequent LLM generated code can use them.
- sci_prog 2y agoYeah, OpenInterpreter does this (you are not limited to OpenAI only): https://github.com/OpenInterpreter/open-interpreter https://github.com/OpenInterpreter/open-interpreter I wrote a wrapper around it that works in a web browser (you'll need an OpenAI API key): https://github.com/uhsealevelcenter/IDEA https://github.com/uhsealevelcenter/IDEA