llm-relay 0.2.1

Shared types, format conversion, and HTTP client for Anthropic and OpenAI LLM APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod convert;
pub mod types;

#[cfg(feature = "client")]
pub mod client;

// Re-export commonly used types at crate root
pub use types::anthropic::{ContentBlock, Message, MessagesResponse};
pub use types::common::{
    EffortLevel, Provider, ResponseFormat, StopReason, ThinkingConfig, ToolDefinition, Usage,
};

#[cfg(feature = "client")]
pub use client::{ChatOptions, ClientConfig, LlmClient, LlmError};

#[cfg(feature = "embeddings")]
pub use client::{EmbeddingsClient, EmbeddingsConfig};