From 40eaa9974e2ca84763e7eb9032392c241a6145a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A4=80=EC=84=9C?= Date: Fri, 13 Sep 2024 19:21:31 +0900 Subject: [PATCH] OpenAI: Add gpt-o1/o1-mini to chat model enum --- .../ai/openai/api/OpenAiApi.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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 e08334959..950fd06ae 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 @@ -183,6 +183,26 @@ public class OpenAiApi { */ public enum ChatModel implements ChatModelDescription { + /** + * Points to the most recent snapshot of the o1 model:o1-preview-2024-09-12 + */ + GPT_O_1_PREVIEW("gpt-o1-preview"), + + /** + * Latest o1 model snapshot + */ + GPT_O_1_PREVIEW_2024_09_12("gpt-o1-preview-2024-09-12"), + + /** + * Points to the most recent o1-mini snapshot:o1-mini-2024-09-12 + */ + GPT_O_1_MINI("gpt-o1-mini"), + + /** + * Latest o1-mini model snapshot + */ + GPT_O_1_MINI_2024_09_12("gpt-o1-mini-2024-09-12"), + /** * Multimodal flagship model that’s cheaper and faster than GPT-4 Turbo. Currently * points to gpt-4o-2024-05-13.