TypeError: Cannot read properties of undefined (reading ‘0’) , i integrate gpt-3.5-turbo with a chat web app in my backend file and this error came
I am building a project where I’m using chat engine and Open AI’s gpt-3.5. Basically this is web based chat application where you can chat with normal user and there will be a option called chat with AI . After using chatgpt-3.5-turbo , I got to know that , the credit points for tokens are not enough to experiment. So I use reverse proxy method to use it for free. Below I’m sharing my code =>