| Crates.io | glide-rs |
| lib.rs | glide-rs |
| version | 0.1.0 |
| created_at | 2024-07-09 21:22:19.059809+00 |
| updated_at | 2024-07-09 21:22:19.059809+00 |
| description | A minimal EinStack client. |
| homepage | https://www.einstack.ai/ |
| repository | https://github.com/EinStack/glide-rs |
| max_upload_size | |
| id | 1297499 |
| size | 79,508 |
Glide is under active development right now 🛠️
Give us a star ⭐ to support the project and watch 👀 our repositories not to miss any update
streaming to enable WebSocket chat support.native-tls to use system-native TLS. Enabled by default.rustls-tls for TLS backed by rustls.cargo add glide-rs
For a full example take a look at hello.rs.
use glide_rs::{Client, Result};
use glide_rs::lang::chat::ChatRequest;
#[tokio::main]
async fn main() -> Result<()> {
let client = Client::default();
let request = ChatRequest::new("Hello!");
let response = client.lang.chat("myrouter", request).await?;
println!("response: {}", response.content());
Ok(())
}