Closed danielroe closed 1 year ago
This looks amazing! A couple of points to mention, in case you find it helpful:
- You do not need to stringify the body of
$fetch
requests, or setcontent-type
. This will be done automatically.- Because you set the
public
key ofruntimeConfig
, the user's API key is exposed to the client. ⚠️ This should probably be fixed as a matter of urgency. https://github.com/SchnapsterDog/nuxt-chatgpt/blob/master/src/module.ts#L50C5-L52. (You just need to update that same line to removepublic
.)
Thanks a lot of the feedback. Really appreciate your time. I will merge the request and going to bump new version for it.
This looks amazing! A couple of points to mention, in case you find it helpful:
$fetch
requests, or setcontent-type
. This will be done automatically.Because you set the
public
key ofruntimeConfig
, the user's API key is exposed to the client.⚠️ This should probably be fixed as a matter of urgency.
https://github.com/SchnapsterDog/nuxt-chatgpt/blob/master/src/module.ts#L50C5-L52. (You just need to update that same line to remove
public
.)