OAI_RS

An async rust library that's a wrapper for the OpenAI API.

💫 Features

Handles some of the following endpoints of the API:

📚 Examples

Simple example to complete a prompt string.

```rust use oai_rs::{completions, models};

async { let completions = completions::build(models::CompletionModels::TEXTDAVINCI003) .prompt("Ice cream or cookies?") .max_tokens(32) .complete() .await;

    println!("{:?}", completions);

}; ```