1 unstable release

0.0.2 Jan 9, 2025
0.0.1 Jan 9, 2025

#1985 in Web programming

Download history 281/week @ 2025-01-08

281 downloads per month

MIT license

8KB
144 lines

Aily

Aily is a library for building AI applications.

Features

  • Support for multiple AI providers
  • Easy to use API
  • Fast and efficient

Installation

Add the following to your Cargo.toml:

[dependencies]
aily = "0.1.0"

Usage

use aily::{Client, Method};
use aily::header::HeaderMap;

#[tokio::main]
async fn main() {
    let client = Client::new();
    let headers = HeaderMap::new();
    let body = "{\"model\":\"chat-4o\"}";
    let response = client.request("/v1/chat/completions", Method::POST, headers, body).await;
    println!("{:?}", response);
}

License

This project is licensed under the MIT license. See LICENSE for more information.


lib.rs:

Aily

Aily is a library for building AI applications.

Features

  • Support for multiple AI providers
  • Easy to use API
  • Fast and efficient

Installation

Add the following to your Cargo.toml:

[dependencies]
aily = "0.1.0"

Usage

use aily::{Client, Method};
use aily::header::HeaderMap;

#[tokio::main]
async fn main() {
    let client = Client::new();
    let headers = HeaderMap::new();
    let body = "{\"model\":\"chat-4o\"}";
    let response = client.request("/v1/chat/completions", Method::POST, headers, body).await;
    println!("{:?}", response);
}

License

This project is licensed under the MIT license. See LICENSE for more information.

Dependencies

~4–16MB
~203K SLoC