From 74e86d3b6d89da93b1bc9fb5ea421035cb83470b Mon Sep 17 00:00:00 2001 From: Simon Sickle <51972200+simonsickle@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:49:45 -0400 Subject: [PATCH] Fix name of GPT-4.1 System Prompt (#3348) (#3351) --- crates/goose/src/agents/prompt_manager.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/goose/src/agents/prompt_manager.rs b/crates/goose/src/agents/prompt_manager.rs index 191d604d..f7cdb01a 100644 --- a/crates/goose/src/agents/prompt_manager.rs +++ b/crates/goose/src/agents/prompt_manager.rs @@ -48,7 +48,7 @@ impl PromptManager { /// Map model (normalized) to prompt filenames; returns filename if a key is contained in the normalized model fn model_prompt_map(model: &str) -> &'static str { let mut map = HashMap::new(); - map.insert("gpt_4_1", "system_gpt_4_1.md"); + map.insert("gpt_4_1", "system_gpt_4.1.md"); // Add more mappings as needed let norm_model = Self::normalize_model_name(model); for (key, val) in &map { @@ -185,25 +185,25 @@ mod tests { // should match prompts based on contained normalized keys assert_eq!( PromptManager::model_prompt_map("gpt-4.1"), - "system_gpt_4_1.md" + "system_gpt_4.1.md" ); assert_eq!( PromptManager::model_prompt_map("gpt-4.1-2025-04-14"), - "system_gpt_4_1.md" + "system_gpt_4.1.md" ); assert_eq!( PromptManager::model_prompt_map("openai/gpt-4.1"), - "system_gpt_4_1.md" + "system_gpt_4.1.md" ); assert_eq!( PromptManager::model_prompt_map("goose-gpt-4-1"), - "system_gpt_4_1.md" + "system_gpt_4.1.md" ); assert_eq!( PromptManager::model_prompt_map("gpt-4-1-huge"), - "system_gpt_4_1.md" + "system_gpt_4.1.md" ); }