Skip to main content

vtcode_core/llm/providers/openai/
mod.rs

1//! OpenAI Provider Implementation
2//!
3//! This module provides the OpenAI API integration, supporting:
4//! - Chat Completions API (GPT-5, GPT-5-mini, etc.)
5//! - Responses API (GPT-5, GPT-5.1 Codex, etc.)
6//! - Harmony encoding for GPT-OSS models
7//! - Streaming and non-streaming responses
8//! - Tool/function calling
9//! - Reasoning models with effort configuration
10//!
11//! ## Module Structure
12//!
13//! The OpenAI provider is split into focused submodules:
14//! - `types` - Shared types and constants
15//! - `errors` - Error handling and formatting
16//! - `streaming` - Stream processing and telemetry
17//! - `responses_api` - Responses API payload handling
18//! - `provider` - Main `OpenAIProvider` implementation
19//!
20//! ## Example
21//!
22//! ```rust,ignore
23//! use vtcode_core::llm::providers::OpenAIProvider;
24//!
25//! let provider = OpenAIProvider::new("sk-...".to_string());
26//! ```
27
28mod custom_provider_auth;
29pub mod errors;
30mod harmony;
31pub mod headers;
32pub mod request_builder;
33pub mod response_parser;
34pub mod responses_api;
35pub mod stream_decoder;
36pub mod streaming;
37pub mod tool_serialization;
38pub mod types;
39
40// Main provider implementation
41mod provider;
42pub use custom_provider_auth::CustomProviderAuthHandle;
43pub use provider::OpenAIProvider;