Skip to content

Commit 7bc79f5

Browse files
committed
chore(openai): update default chat model to gpt-4o-mini
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent e41afd0 commit 7bc79f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The prefix `spring.ai.openai.chat` is the property prefix that lets you configur
100100
| spring.ai.openai.chat.api-key | Optional override for the `spring.ai.openai.api-key` to provide a chat-specific API Key. | -
101101
| spring.ai.openai.chat.organization-id | Optionally, you can specify which organization to use for an API request. | -
102102
| spring.ai.openai.chat.project-id | Optionally, you can specify which project to use for an API request. | -
103-
| spring.ai.openai.chat.options.model | Name of the OpenAI chat model to use. You can select between models such as: `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo`, `gpt-3.5-turbo`, and more. See the https://platform.openai.com/docs/models[models] page for more information. | `gpt-4o`
103+
| spring.ai.openai.chat.options.model | Name of the OpenAI chat model to use. You can select between models such as: `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo`, `gpt-3.5-turbo`, and more. See the https://platform.openai.com/docs/models[models] page for more information. | `gpt-4o-mini`
104104
| spring.ai.openai.chat.options.temperature | The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make output more random while lower values will make results more focused and deterministic. It is not recommended to modify `temperature` and `top_p` for the same completions request as the interaction of these two settings is difficult to predict. | 0.8
105105
| spring.ai.openai.chat.options.frequencyPenalty | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. | 0.0f
106106
| spring.ai.openai.chat.options.logitBias | Modify the likelihood of specified tokens appearing in the completion. | -

spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/openai/OpenAiChatProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class OpenAiChatProperties extends OpenAiParentProperties {
2525

2626
public static final String CONFIG_PREFIX = "spring.ai.openai.chat";
2727

28-
public static final String DEFAULT_CHAT_MODEL = "gpt-4o";
28+
public static final String DEFAULT_CHAT_MODEL = "gpt-4o-mini";
2929

3030
public static final String DEFAULT_COMPLETIONS_PATH = "/v1/chat/completions";
3131

0 commit comments

Comments
 (0)