Skip to content

fix: omit ChatGPT max output token parameter - #18

Merged
emilsvennesson merged 1 commit into
emilsvennesson:mainfrom
AlexeyMatskevich:fix-chatgpt-max-output-tokens
Apr 29, 2026
Merged

emilsvennesson merged 1 commit into
emilsvennesson:mainfrom
AlexeyMatskevich:fix-chatgpt-max-output-tokens

Conversation

@AlexeyMatskevich

Copy link
Copy Markdown
Contributor

Summary

  • Remove the unsupported max_output_tokens field from ChatGPT OAuth /responses requests.
  • Keep OpenAI/Copilot provider behavior unchanged; this only affects the ChatGPT backend endpoint that rejects the parameter.

Verification

  • bun run check
  • Confirmed locally in OpenCode that web-search no longer fails with Unsupported parameter: max_output_tokens.

Closes #17

@emilsvennesson
emilsvennesson merged commit 9ad54aa into emilsvennesson:main Apr 29, 2026
1 check passed
@emilsvennesson

Copy link
Copy Markdown
Owner

Thanks for the PR!

@AlexeyMatskevich
AlexeyMatskevich deleted the fix-chatgpt-max-output-tokens branch April 29, 2026 07:25
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.

Web search tool fails with unsupported max_output_tokens parameter

2 participants