Go to file
0xMRTT 217fefcfa6
bump: cargo.lock
2023-06-17 17:25:23 +02:00
src fix: remove debug 2023-06-17 17:16:43 +02:00
.gitignore inital commit 2023-06-17 15:06:45 +02:00
Cargo.lock bump: cargo.lock 2023-06-17 17:25:23 +02:00
Cargo.toml feat: add more info 2023-06-17 17:23:22 +02:00
README.md feat: add readme 2023-06-17 17:20:41 +02:00

README.md

Theb.ai / BAI Chat

Installation

cargo add baichat-rs

Usage

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(())
}