zai-rs 0.5.1

一个 Rust SDK, 用于调用 智谱AI API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! HTTP client infrastructure: the shared [`ZaiClient`], validated endpoints,
//! transport policies and error types.

pub mod config;
pub mod endpoint;
pub mod error;
pub(crate) mod routes;
pub mod secret;
pub mod transport;

// Re-export the main public types.
pub use config::{
    AdditionalHeader, HttpTransportConfig, HttpTransportConfigBuilder, RetryOverride, ZaiClient,
    ZaiClientBuilder,
};
pub use endpoint::{ApiFamily, EndpointConfig, EndpointConfigBuilder};
pub use error::*;