svir 0.1.1

A small, composable SDK for talking to large language models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Chat Completions: `POST /v1/chat/completions` with `stream: true`.
//!
//! [`Encoder`] turns a [`Request`](crate::Request) into a [`Body`] whose length is known before
//! its first byte. [`Decoder`] reads the server's answer stream: bytes in,
//! [`Event`](crate::Event)s out, no I/O.

mod decoder;
mod encoder;
mod overflow;
mod sse;
#[cfg(feature = "client")]
pub(crate) mod status;
mod think;

pub use crate::body::Body;
pub use decoder::Decoder;
pub use encoder::Encoder;