sneha-4-22 / GITAGPT

RADHE! RADHE!
MIT License
10 stars 0 forks source link

API ket hardcoded in Chat Component #1

Open SusheelThapa opened 10 months ago

SusheelThapa commented 10 months ago

const apiKey = 'VF.DM.654f2817e25d4b0007e9e213.CiVeIWoM9qanNBEp';

The above line of code is from ChatComponent.js

I am sure whether the above is api key that is used in chat or not but if it is the api key then i would recommend to store it in environment variable.

sneha-4-22 commented 10 months ago

Thankyou! i have done some changes can you take a look

SusheelThapa commented 10 months ago

@sneha-4-22 I have on question.

Is the Project running locally? If yes, then const apiKey = {api}; can you help me understand that line? I couldn't understand it.

sneha-4-22 commented 10 months ago

yes it is running locally idk how to host it publically, to hide the id i removed and replace it with api just here only

SusheelThapa commented 10 months ago

It mean you set the value of api locally.