Why did GPT-4 Turbo get worse at coding

You're not imagining it — GPT-4 Turbo started giving you worse code suggestions, more bugs, and less helpful responses around mid-2023. Developers across Reddit, X, and GitHub logged the same complaint: the model that on

Why did GPT-4 Turbo get worse at coding

You're not imagining it — GPT-4 Turbo started giving you worse code suggestions, more bugs, and less helpful responses around mid-2023. Developers across Reddit, X, and GitHub logged the same complaint: the model that once nailed complex programming tasks now struggles with basic logic.

What's actually happening

OpenAI released GPT-4 Turbo (model name `gpt-4-1106-preview`) in November 2023, then updated it to `gpt-4-turbo-2024-04-09` in April 2024. Each update changed the model's behaviour — sometimes for speed, sometimes for cost reduction, sometimes to fix safety issues. The problem? These changes often made the model worse at specific tasks, including coding.

The deterioration you're seeing comes from three sources. First, OpenAI fine-tuned the model to refuse certain requests more aggressively — which accidentally made it overthink simple coding problems. Second, they compressed the model architecture to reduce inference costs, which sacrificed some reasoning depth. Third, they trained newer versions on different data distributions that prioritised safety and general helpfulness over pure technical accuracy.

You'll notice this most when asking GPT-4 Turbo to debug complex code, optimise algorithms, or work with less common programming languages. It hallucinates function names more often. It suggests deprecated methods. It loses context halfway through multi-file refactoring tasks. The April 2024 version particularly struggles with maintaining coding standards across long conversations.

How to fix it

1. Switch to the original GPT-4 model

Log into ChatGPT Plus or the Playground at platform.openai.com. In the model dropdown, select `gpt-4-0613` instead of `gpt-4-turbo`. This older version often handles coding tasks better, though it's slower and costs more per token. You'll sacrifice the 128k context window, dropping back to 8k tokens, but you'll get more reliable code output.

2. Use the API with explicit model names

If you're calling through the API, specify `gpt-4-0613` in your requests instead of using the rolling `gpt-4` pointer. The rolling pointer defaults to whatever OpenAI considers their "best" model — which is now Turbo. Lock in the older model: `{"model": "gpt-4-0613", "messages": [...]}`

3. Adjust your prompts for Turbo's weaknesses

GPT-4 Turbo responds better when you break complex coding requests into smaller, explicit steps. Instead of "refactor this entire module," try "first identify the repeated patterns in this code, then suggest a single function to replace them." State the programming language explicitly at the start. Specify the framework version — "using React 18.2" not just "using React."

4. Enable code execution for verification

In ChatGPT Plus, turn on the Code Interpreter (now called Advanced Data Analysis) in your settings. This forces the model to run its suggested code before showing you results, which catches hallucinated functions and logic errors. You'll find this under Settings → Beta features.

5. Compare outputs across model versions

Run the same coding prompt through both `gpt-4-0613` and the latest Turbo version. If Turbo gives you worse results consistently, file feedback through the ChatGPT interface using the thumbs-down button and note "regression in coding quality." OpenAI tracks these signals, though improvements take months.

If that doesn't work

Switch to Claude 3.5 Sonnet or GPT-4o for coding tasks temporarily. Many developers report GPT-4o (`gpt-4o-2024-08-06`) handles code better than Turbo while maintaining similar speed and context length. If you need OpenAI's ecosystem specifically, you can contact OpenAI support through help.openai.com, but they won't restore old model behaviour — they'll just log your feedback for future training runs.

For API users hitting quality issues, document specific examples where Turbo fails but older models succeed. Include the exact prompts, model versions, and incorrect outputs. Submit these through the API feedback form at platform.openai.com/account/feedback.

Questions people actually ask

Q: Will OpenAI fix GPT-4 Turbo's coding problems?

A: Maybe eventually, but not by reverting changes. They'll release new model versions that address feedback, which typically happens every 3-6 months. The pattern shows they prioritise speed and cost over raw capability.

Q: Can I still access the original GPT-4 that worked better?

A: Yes — `gpt-4-0613` remains available through both the API and ChatGPT Plus model selector. OpenAI hasn't announced a deprecation date yet, though they typically give 6 months notice.

Q: Why does Turbo sometimes refuse to write code it used to handle?

A: Aggressive safety training made it flag more requests as potentially harmful. You'll see this especially with database queries, system administration scripts, or anything involving credentials. Reframe your request to clarify you're working on your own authorised systems.

Q: Does this affect all GPT-4 Turbo users equally?

A: No. OpenAI runs A/B tests where some users get different model versions or behaviours even under the same model name. If GPT-4 Turbo behaviour changed specifically for you, clear your browser cache and try incognito mode to rule out personalisation.

What to remember

  • GPT-4 Turbo traded coding quality for speed and lower costs starting in late 2023
  • Lock API calls to `gpt-4-0613` for better code generation until newer models improve
  • Break complex coding requests into explicit, single-purpose steps
  • Test GPT-4o as an alternative — many developers report better coding performance
  • File specific regression examples through the feedback forms — mass complaints move slower than documented failures

---

*openai-support.com is an independent resource, not affiliated with OpenAI Inc.*

Related help