### Before submitting your bug report - [x] I've tried using the "Ask AI" feature on the [Continue docs site](https://docs.continue.dev/) to see if the docs have an answer - [x] I believe this is a bug. I'll try to join the [Continue Discord](https://discord.gg/NWtdYexhMs) for questions - [x] I'm not able to find an [open issue](https://github.com/continuedev/continue/issues?q=is%3Aopen+is%3Aissue) that reports the same bug - [x] I've seen the [troubleshooting guide](https://docs.continue.dev/troubleshooting) on the Continue Docs ### Relevant environment info ```Markdown ``` ### Description When using gpt-5, I get: ``` 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead. ``` The reason is that only the o-series models apply the patch, gpt-5 doesn't trigger it: https://github.com/continuedev/continue/blob/ab4bb9c1579b591bffb713b90e7cd207586f4dc2/core/llm/llms/OpenAI.ts#L143 ### To reproduce _No response_ ### Log output ```Shell ```
Before submitting your bug report
Relevant environment info
Description
When using gpt-5, I get:
The reason is that only the o-series models apply the patch, gpt-5 doesn't trigger it:
continue/core/llm/llms/OpenAI.ts
Line 143 in ab4bb9c
To reproduce
No response
Log output