Background
This project started around Nov 2022 because I did not find any production ready Rust libraries for OpenAI covering all APIs.
And my non-comprehensive search back then did not lead any robust tools for generating Rust code from spec, and so this crate was hand written. Which is not sustainable when OpenAI does big releases like DevDay.
This issue is to have discussions, and potential long term solutions for generating Rust from OpenAPI spec. Something which helps not just async-openai but overall Rust eco-system for APIs with no production ready Rust crates - like DigitalOcean or Linode OpenAPI spec etc.
Update Nov 2025: These days what works to auto generate is to update the spec file from upstream and then ask coding agent to implement new apis, update existing types and their doc comments.
Use https://github.com/64bit/async-openai/blob/main/AGENTS.md
Background
This project started around Nov 2022 because I did not find any production ready Rust libraries for OpenAI covering all APIs.
And my non-comprehensive search back then did not lead any robust tools for generating Rust code from spec, and so this crate was hand written. Which is not sustainable when OpenAI does big releases like DevDay.
This issue is to have discussions, and potential long term solutions for generating Rust from OpenAPI spec. Something which helps not just
async-openaibut overall Rust eco-system for APIs with no production ready Rust crates - like DigitalOcean or Linode OpenAPI spec etc.Update Nov 2025: These days what works to auto generate is to update the spec file from upstream and then ask coding agent to implement new apis, update existing types and their doc comments.
Use https://github.com/64bit/async-openai/blob/main/AGENTS.md