aily/
lib.rs

1//! # Aily
2//!
3//! Aily is a library for building AI applications.
4//!
5//! ## Features
6//!
7//! - Support for multiple AI providers
8//! - Easy to use API
9//! - Fast and efficient
10//!
11//! ## Installation
12//!
13//! Add the following to your `Cargo.toml`:
14//!
15//! ```toml
16//! [dependencies]
17//! aily = "0.1.0"
18//! ```
19//!
20//! ## Usage
21//!
22//! ```
23//! use aily::{Client, Method};
24//! use aily::header::HeaderMap;
25//!
26//! #[tokio::main]
27//! async fn main() {
28//!     let client = Client::new();
29//!     let headers = HeaderMap::new();
30//!     let body = "{\"model\":\"chat-4o\"}";
31//!     let response = client.request("/v1/chat/completions", Method::POST, headers, body).await;
32//!     println!("{:?}", response);
33//! }
34//! ```
35//!
36//! ## License
37//!
38//! This project is licensed under the MIT license. See [LICENSE](LICENSE) for more information.
39
40pub use reqwest::header;
41pub use reqwest::Method;
42pub use reqwest::{StatusCode, Version};
43
44mod client;
45mod providers;
46
47pub use self::client::Client;
48pub use self::providers::{ModelID, Provider};