openai-openapi 0.2.0

Feature-complete, human, and async OpenAI client, generated from OpenAI's OpenAPI specification
Documentation
1
2
3
4
5
6
7
8
use openai_openapi::OpenAiClient;

#[tokio::main]
async fn main() {
    let client = OpenAiClient::from_env();
    let res = client.list_engines().await.unwrap();
    println!("{:#?}", res);
}