Closed rossman22590 closed 1 year ago
Currently, it is set up so that the key is stored on the client side so that was deployable and scalable to the public. However, if you want it to use your env configuration all you would have to do is change this line to pull from the env. You may also want to do some slight refactoring but it should not be more than moving a couple lines.
so change to this? const token = process.env.OPENAI_API_KEY; ??
Yeah that should work! Just make sure you have pulled down the most recent version.
it worked!
i have my key in env, why wont app us eit?