opi-ai 0.3.0

Unified multi-provider LLM API with streaming support
Documentation
//! Unified multi-provider LLM API with streaming support.
//!
//! Provides a standardized interface for interacting with multiple LLM providers
//! including OpenAI, Anthropic, Google Gemini, Mistral, AWS Bedrock, and Azure OpenAI.

pub mod anthropic;
pub mod config;
pub mod gemini;
pub mod message;
pub mod mistral;
pub mod model;
pub mod openai_chat;
pub mod openai_responses;
pub mod openrouter;
pub mod provider;
pub mod registry;
pub mod retry;
pub mod stream;
#[doc(hidden)]
pub mod test_support;

pub use config::{Config, Error};
pub use model::Model;
pub use provider::Provider;
pub use stream::AssistantStreamEvent;
pub use stream::{CostBreakdown, CumulativeUsage, Pricing, calculate_cost};

#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub enum ApiKind {
    Anthropic,
    OpenAi,
    Google,
    Mistral,
}