EyuCoder / chatgpt-pro

ChatGPT-Pro is an advanced application that combines the power of ChatGPT and DALL.E.
https://chatgpt.eyucoder.com
Apache License 2.0
458 stars 212 forks source link

"Thinking..." don't have any answers. #16

Closed wii8369 closed 1 year ago

wii8369 commented 1 year ago

The installation is complete. Select ChatGPT/Dell.e and enter text. Question text can be generated. But the words and graphics of "Thinking..." don't have any answers.

EyuCoder commented 1 year ago

The openai library is updated make sure to run npm install inside the server folder before you run

Alorse commented 1 year ago

In my case the problem was that is was running client and server concurrently and server was in PORT 3001 and my client in 3000. I had to add my server URL to REACT_APP_BASE_URL to client/.env and run both individually

EyuCoder commented 1 year ago

Also try running server n client separately. env variable might not work when running concurrently

lluangrath commented 1 year ago

I noticed on line 81 in server.js, the response is being retrieved using: response.data.choices[0].text

To see the openai response change it to: response.data.choices[0].message.content

Hope that helps.

mr-wh1tehat commented 1 year ago

Hey there I am having the same problem here("thinking"... And no response) . Let me be more precise: I am using local_setup branch.

I am running server/backend on render.com It is running perfectly on port 3001. No errors. When i visited my backend url it says: {"message":"Hello World!"}

Frontend: on netlify Build command i used on netlify: npm run build. The fronted loaded. I think I am making mistake when using base url. In my case now, I set it to: REACT_APP_BASE_URL : "https://mybackendserverurl.onrender.com

EyuCoder commented 1 year ago

fixed