How to build a functional backend with OpenAI API as LLM

Issues getting OpenAI and backend communicate.