This entire stack is very unstable. I use the scratchattach python library to interface with Scratch and the OpenAI API to get the answers. https://pypi.org/project/scratchattach/ https://platform.openai.com/overview https://github.com/NateChoe1/ScratchGPT