openai-rust
This is a library to interact with the Openai-API. The goal of this crate is to support the entire api.
Example usage
// Here we will use the chat completion endpoint
let client = new;
let args = new;
let res = client.create_chat.await.unwrap;
println!;
You can run this code as an example with OPENAI_API_KEY=(your key) cargo run --example chat
.