The first picture is the JS file and the second is the frontend part. If tried everything but whenever I enter “hello” in the textbox i created, nothing is printed from the API. Im sure i fetched it correctly but idk. Can someone help me please
What error are you getting after you try to hit the API?
Is there an error happening?
No error. Just simply not printing on my webpage
Nothing in the console?
You’re not sending / setting your API key.
Take a few minutes to check out the outstanding OpenAI API Quickstart guide… That will run you through the basics. If you’re still having trouble, come back, and let us know your code and errors.
Nvm it worked. Thank you very much
1 Like