Thank you very much. All the other tutorials were using streamlit to do it so I was having trouble trying to remake it in vue. I will give it a shot tomorrow and I think I will be able to pull off something with your help now.
In the readme, it says "VITE_OPENAI_API_KEY," but in the file useOpenAI.js, it is called "VITE_OPENAI_KEY." I set the same name in both, and it worked.