async-openai
async-openai copied to clipboard
Auto Generation from OpenAPI spec
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.
this works: openapi-generator generate -i openai-openapi.yaml -g rust -o ./output --skip-validate-spec
openai seems to use https://www.stainlessapi.com/ but it does seem a commercial product
Thanks for sharing the link.
Do you by any chance happen to have output of the openapi-generator
? I explored it back then but didn't work well
@64bit I am interested in this enhancement. Here's the output from the openapi-generator
https://github.com/izyuumi/openaiapi.