Skip to content

Commit

Permalink
chore(openai): update default chat model to gpt-4o-mini
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Tzolov <[email protected]>
  • Loading branch information
tzolov committed Feb 14, 2025
1 parent e41afd0 commit 7bc79f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The prefix `spring.ai.openai.chat` is the property prefix that lets you configur
| spring.ai.openai.chat.api-key | Optional override for the `spring.ai.openai.api-key` to provide a chat-specific API Key. | -
| spring.ai.openai.chat.organization-id | Optionally, you can specify which organization to use for an API request. | -
| spring.ai.openai.chat.project-id | Optionally, you can specify which project to use for an API request. | -
| 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`
| 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`
| 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
| 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
| spring.ai.openai.chat.options.logitBias | Modify the likelihood of specified tokens appearing in the completion. | -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class OpenAiChatProperties extends OpenAiParentProperties {

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

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

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

Expand Down

0 comments on commit 7bc79f5

Please sign in to comment.