Skip to content

Commit 0bd27e4

Browse files
committed
OpenAI: Add o1/o1-mini to chat model enum
1 parent 5a35213 commit 0bd27e4

File tree

1 file changed

+20
-0
lines changed
  • models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api

1 file changed

+20
-0
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,26 @@ public OpenAiApi(String baseUrl, String apiKey, MultiValueMap<String, String> he
183183
*/
184184
public enum ChatModel implements ChatModelDescription {
185185

186+
/**
187+
* Points to the most recent snapshot of the o1 model:o1-preview-2024-09-12
188+
*/
189+
O_1_PREVIEW("o1-preview"),
190+
191+
/**
192+
* Latest o1 model snapshot
193+
*/
194+
O_1_PREVIEW_2024_09_12("o1-preview-2024-09-12"),
195+
196+
/**
197+
* Points to the most recent o1-mini snapshot:o1-mini-2024-09-12
198+
*/
199+
O_1_MINI("o1-mini"),
200+
201+
/**
202+
* Latest o1-mini model snapshot
203+
*/
204+
O_1_MINI_2024_09_12("o1-mini-2024-09-12"),
205+
186206
/**
187207
* Multimodal flagship model that’s cheaper and faster than GPT-4 Turbo. Currently
188208
* points to gpt-4o-2024-05-13.

0 commit comments

Comments
 (0)