1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! # aonyx-llm
//!
//! Multi-provider LLM router. One [`LlmProvider`](aonyx_core::LlmProvider) trait,
//! several implementations, one configurable fallback chain.
//!
//! ## Providers
//! - [`anthropic`] — native Anthropic Messages API (streaming SSE).
//! - [`openai_compat`] — shared OpenAI-compatible backend.
//! - [`openai`] — public OpenAI API (`https://api.openai.com`).
//! - [`openrouter`] — OpenRouter aggregator, with optional attribution headers.
//! - [`lm_studio`] — local OpenAI-compatible LM Studio server.
//! - [`ollama`] — local Ollama (`/api/chat`), JSON-lines streaming.
//! - [`claude_code`] — wraps the installed `claude` binary; **no API key**
//! required (auth delegated to Claude Code subscription / its env vars).
//! - [`nous_portal`] — Nous Portal endpoint (deferred).
//!
//! ## Router
//! [`Router`] holds an ordered list of providers and forwards each request to
//! the first one whose stream opens successfully.
pub use ;
pub use ;
pub use OpenAiCompatProvider;
pub use Router;