Skip to content

Conversation

@angiejones
Copy link
Collaborator

Update gpt-5 context limit from 272,000 to 400,000 tokens to match OpenAI's official documentation.

Fixes #4509

Changes

Testing

  • Ran existing unit tests to ensure the change doesn't break functionality
  • The test passes successfully

Update gpt-5 context limit from 272,000 to 400,000 tokens to match
OpenAI's official documentation.

Fixes #4509
@angiejones angiejones merged commit c1c4dd5 into main Sep 12, 2025
11 checks passed
@angiejones angiejones deleted the fix-gpt5-context-limit branch September 12, 2025 04:05
zanesq added a commit that referenced this pull request Sep 12, 2025
…ecipe-activities

* 'main' of github.com:block/goose:
  Add parameter replacement to activities in ui (#4617)
  UI recipes filter invalid, duplicate and unused params (#4615)
  Fix gpt-5 input context limit (#4619)
  [docs] MCP-UI Blog Post (#4578)
  release/1.8.0 (#4577)

# Conflicts:
#	ui/desktop/src/components/BaseChat.tsx
michaelneale added a commit that referenced this pull request Sep 15, 2025
* main:
  Soften str_replace instructions for weaker LLMs (#4639)
  docs: changed logo (#4633)
  Add `analyze` tool to Developer extension (#4530)
  Add recipe title in import form (#4625)
  Desktop json recipes upload (#4629)
  Catch errors in node main (#4627)
  chore(deps-dev): bump vite from 7.1.3 to 7.1.5 in /ui/desktop (#4583)
  docs: add Rube extension documentation and server configuration (#4556)
  Always show recipe activities at the top of chat when recipe accepted and active (#4616)
  Add parameter replacement to activities in ui (#4617)
  UI recipes filter invalid, duplicate and unused params (#4615)
  Fix gpt-5 input context limit (#4619)
  [docs] MCP-UI Blog Post (#4578)
  release/1.8.0 (#4577)
  fix: docker build include valid string prior to sha (#4613)
  Run the conversation fixer over messages for recipe create (#4605)
  docs: github copilot config workarounds (#4607)
  Add recipe schema validation to UI (#4602)
@alexhancock alexhancock mentioned this pull request Sep 23, 2025
HikaruEgashira pushed a commit to HikaruEgashira/goose that referenced this pull request Oct 3, 2025
@hchaudhary1
Copy link

@angiejones this is not correct. 400k is the total context (Including the output context). The max input is 400-128=272k

@DOsinga
Copy link
Collaborator

DOsinga commented Oct 7, 2025

yup, that seems to be the case: https://openai.com/index/introducing-gpt-5-for-developers

DOsinga pushed a commit that referenced this pull request Oct 11, 2025
DOsinga added a commit that referenced this pull request Oct 13, 2025
zanesq added a commit that referenced this pull request Oct 13, 2025
…sion-streaming

* 'main' of github.com:block/goose: (37 commits)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  Make async (#5126)
  docs: unlist tutorials for extensions with archived or moved servers (#5116)
  Add API Documentation Generator prompt (#5001)
  Add flag for enabling eleven labs voice dictation (#5095)
  force re-render fields to pick up custom params usage in instructions (#5112)
  Remove isUserInputDisabled (#5115)
  Improve Rust analysis output for `analyze` tool (#5072)
  Remove duplicate prepare_reply_context call (#5063)
  install react dev tools in development (#4979)
  ...

# Conflicts:
#	ui/desktop/src/components/BaseChat2.tsx
#	ui/desktop/src/hooks/useChatStream.ts
katzdave added a commit that referenced this pull request Oct 15, 2025
* 'main' of github.com:block/goose: (49 commits)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  Make async (#5126)
  ...
lifeizhou-ap added a commit that referenced this pull request Oct 15, 2025
* main:
  fix: include apple silicon build of the desktop app in build artifacts (#5174)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
michaelneale added a commit that referenced this pull request Oct 16, 2025
* main: (35 commits)
  fix: include apple silicon build of the desktop app in build artifacts (#5174)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  ...
@alexhancock alexhancock mentioned this pull request Oct 17, 2025
@DOsinga
Copy link
Collaborator

DOsinga commented Oct 20, 2025

fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gpt-5 input context limit is incorrect

5 participants