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
//! OpenAI Provider Implementation
//!
//! This module provides the OpenAI API integration, supporting:
//! - Chat Completions API (GPT-5, GPT-5-mini, etc.)
//! - Responses API (GPT-5, GPT-5.1 Codex, etc.)
//! - Harmony encoding for GPT-OSS models
//! - Streaming and non-streaming responses
//! - Tool/function calling
//! - Reasoning models with effort configuration
//!
//! ## Module Structure
//!
//! The OpenAI provider is split into focused submodules:
//! - `types` - Shared types and constants
//! - `errors` - Error handling and formatting
//! - `streaming` - Stream processing and telemetry
//! - `responses_api` - Responses API payload handling
//! - `provider` - Main `OpenAIProvider` implementation
//!
//! ## Example
//!
//! ```rust,ignore
//! use vtcode_core::llm::providers::OpenAIProvider;
//!
//! let provider = OpenAIProvider::new("sk-...".to_string());
//! ```
// Main provider implementation
pub use CustomProviderAuthHandle;
pub use OpenAIProvider;