Skip to main content

siumai_provider_openai/
lib.rs

1//! siumai-provider-openai
2//!
3//! OpenAI provider implementation.
4//!
5//! This crate owns:
6//! - the OpenAI provider implementation (client + builder + extensions)
7//! - the OpenAI-compatible vendor provider implementation (configuration presets + adapter wiring)
8//!
9//! The reusable OpenAI-like protocol mapping lives in `siumai-protocol-openai` and is re-exported
10//! under `crate::standards` for compatibility.
11#![deny(unsafe_code)]
12
13// Re-export the provider-agnostic core modules required by the standard implementation.
14// This preserves existing internal module paths in migrated code (e.g. `crate::types::*`).
15pub use siumai_core::{
16    LlmError, auth, client, core, defaults, error, execution, hosted_tools, observability, retry,
17    retry_api, streaming, tools, traits, types, utils,
18};
19
20/// Builder utilities shared across provider crates.
21pub mod builder {
22    pub use siumai_core::builder::*;
23}
24
25/// Provider-owned legacy parameter types.
26pub mod params;
27
28pub mod providers;
29pub mod standards;
30
31/// Provider-owned typed option structs (OpenAI-specific).
32pub mod provider_options;
33
34/// Provider-owned typed metadata structs (OpenAI-specific).
35pub mod provider_metadata;