Skip to content

Commit 6ff5a0f

Browse files
committed
feat: add gpt-5 models
Signed-off-by: Alexandros Pappas <[email protected]>
1 parent 27b09fe commit 6ff5a0f

File tree

1 file changed

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

1 file changed

+29
-8
lines changed

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

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,39 @@ public enum ChatModel implements ChatModelDescription {
482482
GPT_5("gpt-5"),
483483

484484
/**
485-
* <b>GPT-5 (2025-08-07)</b> is a specific snapshot of the GPT-5 model from August
486-
* 7, 2025, providing enhanced capabilities for complex reasoning and
487-
* problem-solving tasks.
485+
* GPT-5 Chat points to the GPT-5 snapshot currently used in ChatGPT. GPT-5 is our
486+
* next-generation, high-intelligence flagship model. It accepts both text and
487+
* image inputs, and produces text outputs.
488488
* <p>
489-
* Note: GPT-5 models require temperature=1.0 (default value). Custom temperature
490-
* values are not supported and will cause errors.
489+
* Model ID: gpt-5-chat-latest
490+
* <p>
491+
* See: <a href=
492+
* "https://platform.openai.com/docs/models/gpt-5-chat-latest">gpt-5-chat-latest</a>
493+
*/
494+
GPT_5_CHAT_LATEST("gpt-5-chat-latest"),
495+
496+
/**
497+
* GPT-5 mini is a faster, more cost-efficient version of GPT-5. It's great for
498+
* well-defined tasks and precise prompts.
491499
* <p>
492-
* Model ID: gpt-5-2025-08-07
500+
* Model ID: gpt-5-mini
493501
* <p>
494-
* See: <a href="https://platform.openai.com/docs/models/gpt-5">gpt-5</a>
502+
* See:
503+
* <a href="https://platform.openai.com/docs/models/gpt-5-mini">gpt-5-mini</a>
504+
*/
505+
GPT_5_MINI("gpt-5-mini"),
506+
507+
// add gpt-5-nano
508+
/**
509+
* GPT-5 Nano is our fastest, cheapest version of GPT-5. It's great for
510+
* summarization and classification tasks.
511+
* <p>
512+
* Model ID: gpt-5-nano
513+
* <p>
514+
* See:
515+
* <a href="https://platform.openai.com/docs/models/gpt-5-nano">gpt-5-nano</a>
495516
*/
496-
GPT_5_2025_08_07("gpt-5-2025-08-07"),
517+
GPT_5_NANO("gpt-5-nano"),
497518

498519
/**
499520
* <b>GPT-4o</b> (“o” for “omni”) is the versatile, high-intelligence flagship

0 commit comments

Comments
 (0)