Knowledge Streaming from LLMs to Environments

Nowadays, not only can we chat with chatGPT, but we can also let it write and execute code to do more complex tasks (e.g. letting chatGPT plot the boundary of America using Python). However, it takes tens of seconds for chatGPT to finish generating the code, executing the code, and showing the final result. We aim to make this process faster, by executing a line of code right after it is generated. This simple trick can make chatGPT show the code execution results 1.5x faster on a wide range of applications!