| Crates.io | aily |
| lib.rs | aily |
| version | 0.0.2 |
| created_at | 2025-01-09 02:01:46.701202+00 |
| updated_at | 2025-01-09 14:12:20.543318+00 |
| description | A ai api proxy library. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1509414 |
| size | 7,293 |
Aily is a library for building AI applications.
Add the following to your Cargo.toml:
[dependencies]
aily = "0.1.0"
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);
}
This project is licensed under the MIT license. See LICENSE for more information.