1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! # MiMo API - Xiaomi MiMo API Client for Rust
//!
//! A Rust client library for Xiaomi MiMo Open Platform API, compatible with OpenAI API format.
//!
//! ## Features
//!
//! - Chat completions (streaming and non-streaming)
//! - Function calling / Tool use
//! - Web search integration
//! - Multi-modal input (image, audio, video)
//! - Text-to-speech synthesis
//! - Structured output
//! - Deep thinking mode
//!
//! ## Example
//!
//! ```rust,no_run
//! use mimo_api::{Client, Message, ChatRequest};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create client from environment variable XIAOMI_API_KEY
//! let client = Client::from_env()?;
//!
//! // Create a chat request
//! let request = ChatRequest::new("mimo-v2-flash")
//! .message(Message::user("Hello, introduce yourself!"));
//!
//! // Send the request
//! let response = client.chat(request).await?;
//!
//! println!("{}", response.choices[0].message.content);
//! Ok(())
//! }
//! ```
//!
//! ## Environment Variables
//!
//! - `XIAOMI_API_KEY`: Your Xiaomi MiMo API key (required)
pub use Client;
pub use ;
pub use *;
/// Re-export commonly used types
pub use ;
/// Schema helpers for creating tool parameter schemas.