llm-connector 0.4.1

Next-generation Rust library for LLM protocol abstraction. V2 architecture with 7000x+ performance boost. Supports 5 protocols (OpenAI, Anthropic, Aliyun, Zhipu, Ollama) with clean Protocol/Provider separation, type-safe interface, and universal streaming.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! V2协议模块
//!
//! 这个模块包含所有协议实现,每个协议代表一个标准的LLM API规范。

pub mod openai;
pub mod aliyun;
pub mod anthropic;
pub mod zhipu;

// 重新导出协议类型
pub use openai::OpenAIProtocol;
pub use aliyun::AliyunProtocol;
pub use anthropic::AnthropicProtocol;
pub use zhipu::ZhipuProtocol;