Skip to content

Commit e0f082f

Browse files
dafrizStudiousXiaoYu
authored andcommitted
Add o1 model to OpenAI ChatModel enum
Signed-off-by: StudiousXiaoYu <[email protected]>
1 parent 6b0d2ad commit e0f082f

File tree

1 file changed

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

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,21 @@ public <T> ResponseEntity<EmbeddingList<Embedding>> embeddings(EmbeddingRequest<
341341
public enum ChatModel implements ChatModelDescription {
342342

343343
/**
344-
* Points to the most recent snapshot of the o1 model:o1-preview-2024-09-12
344+
* Points to the most recent snapshot of the o1 model:o1-2024-12-17
345345
*/
346-
O1_PREVIEW("o1-preview"),
346+
O1("o1"),
347347
/**
348348
* Latest o1 model snapshot
349349
*/
350+
O1_2024_12_17("o1-2024-12-17"),
351+
/**
352+
* Points to the most recent snapshot of the o1 preview
353+
* model:o1-preview-2024-09-12
354+
*/
355+
O1_PREVIEW("o1-preview"),
356+
/**
357+
* Latest o1 preview model snapshot
358+
*/
350359
O1_PREVIEW_2024_09_12("o1-preview-2024-09-12"),
351360
/**
352361
* Points to the most recent o1-mini snapshot:o1-mini-2024-09-12

0 commit comments

Comments
 (0)