feat: add readme

This commit is contained in:
0xMRTT 2023-06-17 17:20:41 +02:00
parent 5890073c07
commit b13c878027
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

29
README.md Normal file
View File

@ -0,0 +1,29 @@
# Theb.ai / BAI Chat
## Installation
``` shell
cargo add baichat-rs
```
## Usage
``` rust
extern crate baichat_rs;
use baichat_rs::ThebAI;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut ai = ThebAI::new(None);
let r = ai.ask("Hello, world!", None).await?;
let response = r[r.len() - 1].text.clone();
println!("{}", response);
Ok(())
}
```