From 8222681e27e5e2f1735b7413592f9b1df40bd988 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 3 May 2025 09:34:54 +0300 Subject: [PATCH] Default OpenAI text-generation model to `gpt-4.1` (previously `gpt-4o`) --- docs/sample-provider-configs/openai.yml | 2 +- src/agent/provider/openai/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sample-provider-configs/openai.yml b/docs/sample-provider-configs/openai.yml index ffe9be3..14419a2 100644 --- a/docs/sample-provider-configs/openai.yml +++ b/docs/sample-provider-configs/openai.yml @@ -1,7 +1,7 @@ base_url: https://api.openai.com/v1 api_key: YOUR_API_KEY_HERE text_generation: - model_id: gpt-4o + model_id: gpt-4.1 prompt: "You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time of this conversation's start is: {{ baibot_conversation_start_time_utc }}." temperature: 1.0 max_response_tokens: 16384 diff --git a/src/agent/provider/openai/config.rs b/src/agent/provider/openai/config.rs index 5a0be51..2a8b820 100644 --- a/src/agent/provider/openai/config.rs +++ b/src/agent/provider/openai/config.rs @@ -79,7 +79,7 @@ impl Default for TextGenerationConfig { } fn default_text_model_id() -> String { - "gpt-4o".to_owned() + "gpt-4.1".to_owned() } #[derive(Debug, Clone, Serialize, Deserialize)]