Skip to content

Commit

Permalink
feat(openai): add updated OpenAI model constants (#314)
Browse files Browse the repository at this point in the history
* feat(openai): add OpenAI model constants  Add constants for OpenAI's latest models to the OpenAI provider: - O3_MINI: OpenAI's most efficient high-context model - O3_MINI_2025_01_31: Date-specific version of O3-mini - O1: OpenAI's flagship model - O1_2024_12_17: Date-specific version of O1  These models are compatible with OpenAI's API and can be used as drop-in replacements in applications using the RIG framework.

* added missing semicolons to completion model endings
  • Loading branch information
affaan-m authored Feb 24, 2025
1 parent 6f12c97 commit 3c60638
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rig-core/src/providers/openai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ impl EmbeddingModel {
// ================================================================
// OpenAI Completion API
// ================================================================
/// `o3-mini` completion model
pub const O3_MINI: &str = "o3-mini";
/// `o3-mini-2025-01-31` completion model
pub const O3_MINI_2025_01_31: &str = "o3-mini-2025-01-31";
/// 'o1' completion model
pub const O1: &str = "o1";
/// `o1-2024-12-17` completion model
pub const O1_2024_12_17: &str = "o1-2024-12-17";
/// `o1-preview` completion model
pub const O1_PREVIEW: &str = "o1-preview";
/// `o1-preview-2024-09-12` completion model
Expand Down

0 comments on commit 3c60638

Please sign in to comment.