1#[cfg(feature = "anthropic")]
5pub mod anthropic;
6#[cfg(feature = "bedrock")]
7pub mod bedrock;
8#[cfg(feature = "bedrock")]
9mod bedrock_cache;
10pub(crate) mod defaults;
11#[cfg(any(feature = "anthropic", feature = "openai"))]
12pub(crate) mod http;
13mod model;
14pub(crate) mod model_info;
15pub(crate) mod model_proxy;
16pub(crate) mod native_output;
17#[cfg(feature = "openai")]
18pub mod openai;
19pub mod routing;
20pub mod streaming;
21pub(crate) mod strict_schema;
22mod summarize;
23pub(crate) mod thinking_binding;
24pub(crate) mod tool_references;
25
26#[cfg(all(feature = "anthropic", feature = "bedrock"))]
27pub use anthropic::AnthropicBedrockConfig;
28#[cfg(feature = "anthropic")]
29pub use anthropic::{AnthropicClientConfig, AnthropicModel, AnthropicModelConfig, AnthropicModelOptions};
30#[cfg(feature = "bedrock")]
31pub use bedrock::{BedrockModel, BedrockModelConfig, BedrockModelOptions};
32pub use model::{
33 AggregatedEvent, BaseModelConfig, BoxStream, CacheConfig, CacheKey, CacheSectionSetting, CacheStrategy, CacheTtl,
34 CountTokensOptions, Model, ModelRequest, Redaction, StreamAggregatedResult, SummarizeOptions, base_model_info,
35 estimate_tokens,
36};
37#[allow(unused_imports, reason = "providers use these crate-internal helpers")]
38pub(crate) use model::{
39 ResolvedCacheSection, heuristic_json, is_js_whitespace, latest_user_index, resolve_cache_section,
40 resolve_config_metadata, resolve_max_tokens,
41};
42pub use model_info::{DeferredToolLoading, ModelCapabilities, ModelInfo, ModelLimits, PromptCaching};
43#[cfg(feature = "mantle")]
44pub use openai::BedrockMantleConfig;
45#[cfg(feature = "openai")]
46pub use openai::{OpenAIApi, OpenAIClientConfig, OpenAIModel, OpenAIModelConfig, OpenAIModelOptions};
47pub use summarize::{SummarizeResult, summarize_client_side};