Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some reason, this code doesn't work. I cleaned up the 's and have a api key. It says

TypeError: undefined is not an object (evaluating 'data.choices[0]')



Is ok I got it fixed, by asking chatgpt to write me some new code.


I'm seeing the same error. How did you fix it? I don't understand what you meant by asking chatgpt to write you new code, I can't even open chatgpt due to high traffic.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: