deontologician / openai-api-rust

Rust client for OpenAI API
Apache License 2.0
104 stars 26 forks source link

Scrape the python client for api resources #5

Open deontologician opened 3 years ago

deontologician commented 3 years ago

They're available here and have a very regular shape:

https://github.com/openai/openai-python/tree/main/openai/api_resources

Since the shape is pretty predictable, probably don't need to actually execute python and introspect, could just use a crate like python_parser and output the corresponding rust types.