...
https://platform.openai.com/docs/guides/code - Inadequate. Maybe try again in 2024 or later when AI research has improved.
Update: GPT-4 was released recently and might be worth looking into.
Code Generation
OpenAI
OpenAI is best known for their product ChatGPT. However, they have models that can be used for code generation. See https://platform.openai.com/docs/guides/code . Initial investigations into OpenAI were underwhelming. The better of the two models (code-davinci-002) was frequently under load and unavailable, so I did my investigations with the lesser of the two models (code-cushman-001, described as “almost as capable as code-davinci-002, but slightly faster”).
...