Skip to main content

walrus_model/
lib.rs

1//! Model crate — LLM provider implementations, enum dispatch, configuration,
2//! construction, and runtime management.
3//!
4//! Merges all provider backends (OpenAI, Claude, Local) with the `Provider`
5//! enum, `ProviderManager`, and `ProviderConfig` into a single crate. Config
6//! uses flat `ProviderConfig` with model-prefix kind detection. DeepSeek and
7//! other OpenAI-compatible providers route through the OpenAI backend.
8
9pub mod config;
10pub mod manager;
11mod provider;
12
13#[path = "../remote/mod.rs"]
14pub mod remote;
15
16#[cfg(feature = "local")]
17#[path = "../local/mod.rs"]
18pub mod local;
19
20pub use config::{ProviderConfig, ProviderKind};
21pub use manager::ProviderManager;
22pub use provider::{Provider, build_provider};
23pub use reqwest::Client;