rig/providers/openai/
mod.rs

1//! OpenAI API client and Rig integration
2//!
3//! # Example
4//! ```
5//! use rig::providers::openai;
6//!
7//! let client = openai::Client::new("YOUR_API_KEY");
8//!
9//! let gpt4o = client.completion_model(openai::GPT_4O);
10//! ```
11pub mod client;
12pub mod completion;
13pub mod embedding;
14pub mod responses_api;
15
16#[cfg(feature = "audio")]
17#[cfg_attr(docsrs, doc(cfg(feature = "audio")))]
18pub mod audio_generation;
19#[cfg(feature = "image")]
20#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
21pub mod image_generation;
22
23pub mod transcription;
24
25pub use client::*;
26pub use completion::*;
27pub use embedding::*;
28
29#[cfg(feature = "audio")]
30pub use audio_generation::{TTS_1, TTS_1_HD};
31
32#[cfg(feature = "image")]
33pub use image_generation::*;
34pub use streaming::*;
35pub use transcription::*;