Write Function Node Code with ChatGPT

@robmarcer,
Thanks to the entire team for developing this, and sharing it with the community!

I am a fan of chatgpt (at least for some areas that it know a lot about) so looking forward to start using this in Node-RED. BTW The demo looks very nice!!

I "think" I have setup my API key correctly, and entered all my info into the config screen. But I keep getting this error:

image

Do you have any tips I could try?

Two other remarks:

  • A "test connection" button in the config screen might be useful.
  • Is it the intention to keep this in the future as a separate node, or will it be integrated later on into the standard function node? In case it will stay a separate node, my feature request from some time ago might be useful. Because if the function node backend part could be reused, that would simplify maintaince for all of us.

Thanks!!!
Bart