Skip to content

Commit beaee3f

Browse files
authored
[integration][openai] Update stale default model gpt-3.5-turbo to gpt-4o-mini (#906)
1 parent 55ccb13 commit beaee3f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/content/docs/development/chat_models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ OpenAI provides cloud-based chat models with state-of-the-art performance for a
845845
| Parameter | Type | Default | Description |
846846
|-----------|------|---------|-------------|
847847
| `connection` | str | Required | Reference to connection method name |
848-
| `model` | str | `"gpt-3.5-turbo"` | Name of the chat model to use |
848+
| `model` | str | `"gpt-4o-mini"` | Name of the chat model to use |
849849
| `prompt` | Prompt \| str | None | Prompt template or reference to prompt resource |
850850
| `tools` | List[str] | None | List of tool names available to the model |
851851
| `temperature` | float | `0.1` | Sampling temperature (0.0 to 2.0) |
@@ -863,7 +863,7 @@ OpenAI provides cloud-based chat models with state-of-the-art performance for a
863863
| Parameter | Type | Default | Description |
864864
|-----------|------|---------|-------------|
865865
| `connection` | String | Required | Reference to connection method name |
866-
| `model` | String | `"gpt-3.5-turbo"` | Name of the chat model to use |
866+
| `model` | String | `"gpt-4o-mini"` | Name of the chat model to use |
867867
| `prompt` | Prompt \| String | None | Prompt template or reference to prompt resource |
868868
| `tools` | List<String> | None | List of tool names available to the model |
869869
| `temperature` | double | `0.1` | Sampling temperature (0.0 to 2.0) |

integrations/chat-models/openai/src/main/java/org/apache/flink/agents/integrations/chatmodels/openai/OpenAICompletionsSetup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959
public class OpenAICompletionsSetup extends BaseChatModelSetup {
6060

61-
private static final String DEFAULT_MODEL = "gpt-3.5-turbo";
61+
private static final String DEFAULT_MODEL = "gpt-4o-mini";
6262
private static final double DEFAULT_TEMPERATURE = 0.1d;
6363
private static final int DEFAULT_TOP_LOGPROBS = 0;
6464
private static final boolean DEFAULT_STRICT = false;

python/flink_agents/integrations/chat_models/openai/openai_chat_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
resolve_openai_credentials,
3636
)
3737

38-
DEFAULT_OPENAI_MODEL = "gpt-3.5-turbo"
38+
DEFAULT_OPENAI_MODEL = "gpt-4o-mini"
3939

4040

4141
class OpenAIChatModelConnection(BaseChatModelConnection):

0 commit comments

Comments
 (0)