Repository navigation
Replace the retired gpt-3.5-turbo default for openai.com - #342
Open
alexcastgonz (pcbeingused333) wants to merge 1 commit into
Open
alexcastgonz (pcbeingused333) wants to merge 1 commit into
alexcastgonz (pcbeingused333) wants to merge 1 commit into
Conversation
OpenAI shut gpt-3.5-turbo down on 2026-10-23. With OPENAI_CHAT_HOST=openaicom and no OPENAICOM_CHAT_MODEL, the app fell back to it and the chat calls failed. Use gpt-5.4, the same model as the Azure default, in the fallback, the Bicep setting, the sample env file and the tests, and add a test for the fallback.
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.
Purpose
With
OPENAI_CHAT_HOST=openaicomand noOPENAICOM_CHAT_MODEL, the app fell back togpt-3.5-turbo. OpenAI shut that model down on 2026-10-23, so the default chat model now fails.This changes the fallback to
gpt-5.4insrc/backend/fastapi_app/dependencies.py, theOPENAICOM_CHAT_MODELvalue ininfra/main.bicep,.env.sampleand the tests, and adds a test for the fallback.OpenAI's suggested replacement for
gpt-3.5-turboisgpt-5.6-terra, but the chat requests always sendtemperature(rag_simple.py,rag_advanced.py, default 0.3), andgpt-5.6-terradefaults to medium reasoning effort, which does not accept it.gpt-5.4defaults to no reasoning, acceptstemperature, and is already the default for the Azure host in this repo.Does this introduce a breaking change?
Type of change
Code quality checklist
tests/test_dependencies.py, 5 passed; the full suite was not run).python -m pytest --covto verify 100% coverage of added lines (not run; the only non-test change is one string literal independencies.py, which the new test exercises)python -m ty checkto check for type errors (not run)ruffmanually on my code (ruff checkandruff format --checkon the touched files)This change was prepared with AI assistance (Claude Code).