From 9c003b58b74f68dfcf65dfe393f28d98c0935fee Mon Sep 17 00:00:00 2001 From: angiejones Date: Thu, 11 Sep 2025 20:53:21 -0500 Subject: [PATCH] Fix gpt-5 input context limit Update gpt-5 context limit from 272,000 to 400,000 tokens to match OpenAI's official documentation. Fixes #4509 --- crates/goose/src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/goose/src/model.rs b/crates/goose/src/model.rs index 228013f0b469..e37d63e98672 100644 --- a/crates/goose/src/model.rs +++ b/crates/goose/src/model.rs @@ -17,7 +17,7 @@ pub enum ConfigError { static MODEL_SPECIFIC_LIMITS: Lazy> = Lazy::new(|| { vec![ // openai - ("gpt-5", 272_000), + ("gpt-5", 400_000), ("gpt-4-turbo", 128_000), ("gpt-4.1", 1_000_000), ("gpt-4-1", 1_000_000),