I've developed a free open source plugin for integrating the OpenAI chat API into unreal engine.
Its essentially a direct translation to unreal, all the structs are directly the same as the API, and I'll be adding some helper functions.
Feel free to try to compile this for UE5, i haven't done that yet, nothing stopping it from working on any version tho