A few weeks back I couldn't even get ChatGPT to output TypeScript code that correctly used the OpenAI SDK.
You should give it documentation is can't guess.