Skip to content

fix(ai): replace the shut-down gpt-3.5-turbo model - #6

Merged
Bogdusik merged 1 commit into
mainfrom
fix/openai-model
Nov 19, 2026
Merged

Bogdusik merged 1 commit into
mainfrom
fix/openai-model

Conversation

@Bogdusik

Copy link
Copy Markdown
Owner

OpenAI shut down gpt-3.5-turbo on 2026-10-23, so every chat message failed with 404 The model gpt-3.5-turbo has been deprecated (Vercel logs) and the chat answered 500.

Summary

  • One OPENAI_MODEL constant for all four calls, default gpt-5.6-terra (OpenAI's listed replacement), overridable via the OPENAI_MODEL env var
  • max_tokens → max_completion_tokens, temperature removed (GPT-5 models accept only the default); larger budgets for the short title, question-type and grading calls, since reasoning uses part of it

Test plan

  • 206 tests pass, type-check passes
  • Preview deploy: a chat message gets an answer, with a generated title

OpenAI shut gpt-3.5-turbo down on 2026-10-23, so every chat message
failed with "404 The model gpt-3.5-turbo has been deprecated" and the
chat answered 500. Use one OPENAI_MODEL constant for all four calls,
defaulting to gpt-5.6-terra (OpenAI's listed replacement) and
overridable through the OPENAI_MODEL env var. GPT-5 models only accept
max_completion_tokens and the default temperature and spend part of the
budget on reasoning, so drop temperature and give the short title,
question-type and grading calls room to answer.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
programming-helper-ai Ready Ready Preview Nov 19, 2026 3:52pm UTC

@Bogdusik
Bogdusik merged commit a6a336f into main Nov 19, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — d2ed0960 Deployed Nov 19, 2026 by vercel[bot]
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.

1 participant