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
20#[cfg(feature = "image")]
21#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
22pub mod image_generation;
23#[cfg(feature = "image")]
24pub use image_generation::*;
25
26pub mod transcription;
27
28pub use client::*;
29pub use completion::*;
30pub use embedding::*;
31
32#[cfg(feature = "audio")]
33pub use audio_generation::{TTS_1, TTS_1_HD};
34
35pub use streaming::*;
36pub use transcription::*;