project_openai_codex icon indicating copy to clipboard operation
project_openai_codex copied to clipboard

optimized server code + added comments

Open sanukjoseph opened this issue 2 years ago • 6 comments

Added server code optimization + added comments to each server functions + changed key event from 37 to "enter"

sanukjoseph avatar Dec 23 '22 13:12 sanukjoseph

The website is not working

yitbe22 avatar Dec 24 '22 14:12 yitbe22

after deployment the code was working good but then i got a status 401 and I do not why, I checked everything

RosaMoran avatar Dec 24 '22 16:12 RosaMoran

Error: Request failed with status code 429, please help..

MathewzVk avatar Dec 27 '22 06:12 MathewzVk

Error: Request failed with status code 429, please help.. @MathewzVk

I solve the issue of 429 getting an HTTP Error & Solve the Render Deployment Issue.... you have to sign up for OpenAI with your own email address (not sign up with google) and do phone verification then it will give you the free trial of $18 ..and then the code will perfectly work.

401 Issue Solved/ Render deploy Issue: Make sure that your localhost is closed that is not up & running while deploying because it conflicts with your API key with the locally deployed API key. then deploy the server to render.com and add also your environment key into the Environment Variable. Now Update your fetch URL on the client side by adding your back-end render deploy URL then open your terminal and do this thing -- git init git add . git commit -m "fetch URL or something you want" git push That should be updated, your GitHub code . Now go to the vercel select your GitHub repo The root directory should be the client then hit deploy that's all .. My code is perfectly working on live deployment.

crocmons avatar Dec 28 '22 02:12 crocmons

Error: Request failed with status code 429, please help.. @MathewzVk

I solve the issue of 429 getting an HTTP Error & Solve the Render Deployment Issue.... you have to sign up for OpenAI with your own email address (not sign up with google) and do phone verification then it will give you the free trial of $18 ..and then the code will perfectly work.

401 Issue Solved/ Render deploy Issue: Make sure that your localhost is closed that is not up & running while deploying because it conflicts with your API key with the locally deployed API key. then deploy the server to render.com and add also your environment key into the Environment Variable. Now Update your fetch URL on the client side by adding your back-end render deploy URL then open your terminal and do this thing -- git init git add . git commit -m "fetch URL or something you want" git push That should be updated, your GitHub code . Now go to the vercel select your GitHub repo The root directory should be the client then hit deploy that's all .. My code is perfectly working on live deployment.

i got error " error 401 request failed with status code" is your steps work ??

R0LEX7 avatar Jan 20 '23 20:01 R0LEX7

after deployment the code was working good but then i got a status 401 and I do not why, I checked everything

In server code, you have to use your OpenAPI key .

bisen-del avatar Jan 31 '23 07:01 bisen-del