From e0406d0a0214e3342c28260bcac08927bfa93f6a Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 13 Sep 2024 09:20:38 +0900 Subject: [PATCH] Add o1 model --- src/v1/common.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/v1/common.rs b/src/v1/common.rs index 4055b4b..d641115 100644 --- a/src/v1/common.rs +++ b/src/v1/common.rs @@ -24,6 +24,12 @@ macro_rules! impl_builder_methods { #[derive(Debug, Serialize, Deserialize)] pub struct EmptyRequestBody {} +// https://platform.openai.com/docs/models/o1 +pub const O1_PREVIEW: &str = "o1-preview"; +pub const O1_PREVIEW_2024_09_12: &str = "o1-preview-2024-09-12"; +pub const O1_MINI: &str = "o1-mini"; +pub const O1_MINI_2024_09_12: &str = "o1-mini-2024-09-12"; + // https://platform.openai.com/docs/models/gpt-4o-mini pub const GPT4_O_MINI: &str = "gpt-4o-mini"; pub const GPT4_O_MINI_2024_07_18: &str = "gpt-4o-mini-2024-07-18";