From db9cc62defc6fdf19f2ff30b2fb32792691e6943 Mon Sep 17 00:00:00 2001 From: Mark Pollack Date: Thu, 19 Sep 2024 10:42:18 -0400 Subject: [PATCH] Change enums of chatgpt o1 modesl to correct values --- .../org/springframework/ai/openai/api/OpenAiApi.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 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 a63102cad..64e0d58ce 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 @@ -191,22 +191,19 @@ public class OpenAiApi { /** * Points to the most recent snapshot of the o1 model:o1-preview-2024-09-12 */ - GPT_O_1_PREVIEW("gpt-o1-preview"), - + O1_PREVIEW("o1-preview"), /** * Latest o1 model snapshot */ - GPT_O_1_PREVIEW_2024_09_12("gpt-o1-preview-2024-09-12"), - + O1_PREVIEW_2024_09_12("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"), - + O1_MINI("o1-mini"), /** * Latest o1-mini model snapshot */ - GPT_O_1_MINI_2024_09_12("gpt-o1-mini-2024-09-12"), + O1_MINI_2024_09_12("o1-mini-2024-09-12"), /** * Multimodal flagship model that’s cheaper and faster than GPT-4 Turbo. Currently