Glide is under active development right now 🛠️
Give us a star ⭐ to support the project and watch 👀 our repositories not to miss any update
streamingto enable WebSocket chat support.native-tlsto use system-native TLS. Enabled by default.rustls-tlsfor TLS backed by rustls.
cargo add glide-rsFor 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(())
}