zai-rs 0.6.0

Type-safe async Rust SDK for Zhipu AI (BigModel) APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Query the account's knowledge-base capacity.

use zai_rs::{client::ZaiClient, knowledge::KnowledgeCapacityRequest};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = ZaiClient::from_env()?;
    let resp = KnowledgeCapacityRequest::new().send_via(&client).await?;
    println!("{resp:#?}");
    Ok(())
}