you can also start reading this post by @matt_conroy,describing how to connect to openai:
read the thread from top to bottom, also read the link above for details. i posted a working model based on this discussion here: