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
39
40
41
42
43
44
//! Shared `OpenAI` wire-protocol HTTP layer.
//!
//! Provides a provider-neutral implementation of the `OpenAI` REST protocol
//! suitable for any OpenAI-compatible API endpoint. Extracted from `api_xai`
//! and `api_openai` to eliminate infrastructure duplication.
//!
//! # Features
//!
//! - `enabled` — activates all public types and the HTTP client
//! - `streaming` — Server-Sent Events streaming support
//! - `sync_api` — blocking wrappers around the async client
//! - `integration` — real-API integration tests (requires live credentials)
//! - `full` — enables `enabled`, `streaming`, and `sync_api`
//!
//! # Architecture
//!
//! Follows the "Thin Client, Rich API" principle: every method maps to exactly
//! one API endpoint, zero automatic decision-making, explicit control over all
//! operations. See workspace `spec.md` for governing principles.
use mod_interface;
cratemod_interface!