llm-connector 0.3.12

Minimal Rust library for LLM protocol abstraction. Supports 6 protocols (OpenAI, Anthropic, Aliyun, Zhipu, Ollama, Hunyuan) with unified interface, multiple streaming formats (OpenAI/Ollama), and dynamic model discovery.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Core types for llm-connector

mod request;
mod response;

#[cfg(feature = "streaming")]
mod streaming;

// Re-exports
pub use request::*;
pub use response::*;

#[cfg(feature = "streaming")]
pub use streaming::*;

// Compatibility alias for users expecting ChatMessage
// ChatMessage is the same as Message
pub type ChatMessage = request::Message;