From 9d95f0f7c9278bd0f0746c4b5376f1070fac039c Mon Sep 17 00:00:00 2001 From: dafriz Date: Sun, 29 Dec 2024 18:24:53 +1100 Subject: [PATCH] Add o1 model to OpenAI ChatModel enum --- .../springframework/ai/openai/api/OpenAiApi.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java b/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java index a6fc5794c..c9e54ceee 100644 --- a/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java +++ b/models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java @@ -341,11 +341,20 @@ public class OpenAiApi { public enum ChatModel implements ChatModelDescription { /** - * Points to the most recent snapshot of the o1 model:o1-preview-2024-09-12 + * Points to the most recent snapshot of the o1 model:o1-2024-12-17 + */ + O1("o1"), + /** + * Latest o1 model snapshot + */ + O1_2024_12_17("o1-2024-12-17"), + /** + * Points to the most recent snapshot of the o1 preview + * model:o1-preview-2024-09-12 */ O1_PREVIEW("o1-preview"), /** - * Latest o1 model snapshot + * Latest o1 preview model snapshot */ O1_PREVIEW_2024_09_12("o1-preview-2024-09-12"), /**