crabllm-proxy 0.0.19

HTTP proxy server for the crabllm LLM API gateway
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Anthropic-compatible inbound endpoint.
//!
//! When a client sends a request in Anthropic Messages API format, these
//! modules normalize it to the internal OpenAI-shaped `ChatCompletionRequest`
//! so the rest of the proxy pipeline (extensions, provider dispatch) is
//! unchanged, then translate the response back to Anthropic's wire format.

pub use handler::messages;
pub use sse::{AnthropicSseEvent, to_anthropic_sse};
pub use translate::{from_chat_completion, to_chat_completion};

mod handler;
mod sse;
mod translate;