Repository navigation
fix(ai): replace the shut-down gpt-3.5-turbo model - #6
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
OPENAI_MODELconstant for all four calls, defaultgpt-5.6-terra(OpenAI's listed replacement), overridable via theOPENAI_MODELenv varmax_tokens→max_completion_tokens,temperatureremoved (GPT-5 models accept only the default); larger budgets for the short title, question-type and grading calls, since reasoning uses part of itTest plan
type-checkpasses