#![forbid(unsafe_code)]
#[cfg_attr(
not(any(
feature = "anthropic",
feature = "openai",
feature = "ollama",
feature = "gemini",
feature = "proxy",
feature = "azure",
feature = "bedrock",
feature = "mistral",
feature = "xai",
)),
allow(dead_code)
)]
mod base;
#[cfg_attr(
not(any(
feature = "anthropic",
feature = "openai",
feature = "ollama",
feature = "gemini",
feature = "proxy",
feature = "azure",
feature = "bedrock",
feature = "mistral",
feature = "xai",
)),
allow(dead_code)
)]
mod block_accumulator;
pub mod classify;
pub mod convert;
#[cfg_attr(
not(any(
feature = "anthropic",
feature = "openai",
feature = "ollama",
feature = "gemini",
feature = "proxy",
feature = "azure",
feature = "bedrock",
feature = "mistral",
feature = "xai",
)),
allow(dead_code)
)]
mod finalize;
#[cfg_attr(
not(any(feature = "openai-compat", feature = "azure", feature = "mistral",)),
allow(dead_code)
)]
mod oai_transport;
#[cfg_attr(
not(any(feature = "openai-compat", feature = "azure", feature = "mistral",)),
allow(dead_code)
)]
mod openai_compat;
mod remote_presets;
pub mod sse;
pub use remote_presets::{
RemoteModelConnectionError, RemotePresetKey, all_remote_presets, build_connection_from_preset,
build_remote_connection, build_remote_connection_for_model,
build_remote_connection_with_credential, is_provider_compiled, preset, remote_presets,
};
#[cfg(feature = "anthropic")]
mod anthropic;
#[cfg(feature = "anthropic")]
pub use anthropic::AnthropicStreamFn;
#[cfg(feature = "openai-compat")]
#[allow(clippy::doc_markdown)]
mod openai;
#[cfg(feature = "openai")]
pub use openai::OpenAiStreamFn;
#[cfg(feature = "ollama")]
mod ollama;
#[cfg(feature = "ollama")]
pub use ollama::OllamaStreamFn;
#[cfg(feature = "gemini")]
mod google;
#[cfg(feature = "gemini")]
pub use google::GeminiStreamFn;
#[cfg(feature = "proxy")]
mod proxy;
#[cfg(feature = "proxy")]
pub use proxy::ProxyStreamFn;
#[cfg(feature = "azure")]
mod azure;
#[cfg(feature = "azure")]
pub use azure::{AzureAuth, AzureStreamFn};
#[cfg(feature = "bedrock")]
mod bedrock;
#[cfg(feature = "bedrock")]
pub use bedrock::BedrockStreamFn;
#[cfg(feature = "mistral")]
mod mistral;
#[cfg(feature = "mistral")]
pub use mistral::MistralStreamFn;
#[cfg(feature = "xai")]
mod xai;
#[cfg(feature = "xai")]
pub use xai::XAiStreamFn;