DEV Community

Cover image for I built an OpenAI CLI in Rust

I built an OpenAI CLI in Rust

Thiago Pacheco on December 28, 2022

Today I built an OpenAI command-line interface (CLI) in Rust. Here's how I did it and why I chose to use Rust for the project. First, I needed to ...
Collapse
 
64bit profile image
Himanshu Neema

Nice! It would be very useful to have a Rust based cli for OpenAI!

Very recently I ended up building an unofficial library based on their OpenAPI spec: github.com/64bit/async-openai

Collapse
 
pacheco profile image
Thiago Pacheco

Hey Himanshu, amazing job with library!
I took a quick look, I am going to play around with it when I have time and I’d love to contribute to it if there is anything needed :)

Collapse
 
64bit profile image
Himanshu Neema

Thank you, Thiago! I'm glad that you like it.

Your contributions, feedback would be most welcome, anything that makes library UX better.

As of now it doesn't have a Fine tuning example, I believe it would be something non-trivial unlike rest of the examples. I have created a issue for it here