Conversation
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.
Summary
openai/codexGitHub release when refreshing the account model catalogue.CHATGPT_LOCAL_MODELS_CLIENT_VERSIONas an optional stable-release-only override; prerelease values are rejected. If GitHub is unavailable, use the last successful stable version or the bundled verified0.156.0fallback.This is an alternative to #126 and addresses #125 without adding GPT-6 IDs to static lists. Future visible model IDs require no ChatMock registry change. The existing cache is marked stale when its client version differs from the effective version, so the first refresh replaces it.
Verification
python -m unittest discover -s tests -q— 24 tests passed.0.156.0returned the GPT-6 models. No live model turn was run.How to try locally
GET /v1/modelsandGET /api/tags; both should list only models visible in the signed-in account catalogue.CHATGPT_LOCAL_MODELS_CLIENT_VERSION=0.156.0, restart, and check the list again. Remove the override to resume automatic stable-release selection.The release check runs on the existing catalogue refresh interval (one hour by default), not on every request. Existing model aliases and the request default are retained for compatibility but are no longer used to advertise availability.