Docs.rs
ai-lib-0.2.0
ai-lib 0.2.0
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
hiddenpath
Dependencies
async-trait ^0.1
normal
backoff ^0.4
normal
base64 ^0.22.1
normal
bytes ^1.4
normal
chrono ^0.4
normal
futures ^0.3
normal
httpmock ^0.6.8
normal
reqwest ^0.12
normal
reqwest-eventsource ^0.6
normal
serde ^1.0
normal
serde_json ^1.0
normal
thiserror ^2.0.16
normal
tokio ^1.0
normal
tokio-stream ^0.1
normal
Versions
44.62%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Module chat
ai_lib
0.2.0
Module chat
Module Items
Modules
Structs
Traits
In ai_
lib::
api
ai_lib
::
api
Module
chat
Copy item path
Source
Modules
§
batch_
utils
批处理工具函数
Structs
§
Batch
Result
批处理结果,包含成功和失败的响应
Chat
Completion
Chunk
流式响应的数据块
Choice
Delta
流式响应的选择项增量
Message
Delta
消息增量
Model
Info
模型信息
Model
Permission
模型权限
Traits
§
ChatApi
通用的聊天API接口,定义所有AI服务的核心能力