Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Generation from OpenAPI spec #163

Open
64bit opened this issue Dec 2, 2023 · 3 comments
Open

Auto Generation from OpenAPI spec #163

64bit opened this issue Dec 2, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@64bit
Copy link
Owner

64bit commented Dec 2, 2023

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.

@64bit 64bit added the enhancement New feature or request label Dec 2, 2023
@louis030195
Copy link

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

@64bit
Copy link
Owner Author

64bit commented Dec 20, 2023

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 64bit added out of scope Requests which are not related to OpenAI API and removed out of scope Requests which are not related to OpenAI API labels Jan 9, 2024
@izyuumi
Copy link

izyuumi commented Jun 14, 2024

@64bit I am interested in this enhancement. Here's the output from the openapi-generator https://github.com/izyuumi/openaiapi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants