Update all OpenAI Chat GPT 4.x models to 5.x.#1115
Open
sscargal wants to merge 1 commit intoMemMachine:mainfrom
Open
Update all OpenAI Chat GPT 4.x models to 5.x.#1115sscargal wants to merge 1 commit intoMemMachine:mainfrom
sscargal wants to merge 1 commit intoMemMachine:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates MemMachine defaults, examples, docs, and tests to use GPT‑5.x model identifiers in place of deprecated GPT‑4.x strings.
Changes:
- Replaced hard-coded OpenAI model defaults (e.g.,
gpt-4o-mini,gpt-4o,gpt-4.1) with GPT‑5.x equivalents across runtime config and API spec defaults. - Updated sample configs/docs/scripts to show GPT‑5.x in prompts and examples.
- Updated tests to assert the new default model strings and API payloads/paths.
Reviewed changes
Copilot reviewed 34 out of 34 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/memmachine/server/api_v2/test_router.py | Updates semantic set configuration test to expect gpt-5.2. |
| tests/memmachine/server/api_v2/test_config_service.py | Updates persisted language model config test to use gpt-5.2. |
| tests/memmachine/server/api_v2/test_config_router.py | Updates mocked LM names/configs and API paths to use gpt-5.2; updates semantic memory config expectations. |
| tests/memmachine/rest_client/test_memory.py | Updates REST client semantic set payload assertions to gpt-5.2. |
| tests/memmachine/rest_client/test_config.py | Updates semantic memory config response/request assertions to gpt-5.2. |
| tests/memmachine/main/test_memmachine_mock.py | Updates STM default model assertion to gpt-5.2. |
| tests/memmachine/installation/test_configuration_wizard.py | Updates wizard prompt test input model to gpt-5-mini. |
| tests/memmachine/conftest.py | Updates integration config fixture default to gpt-5-mini. |
| tests/memmachine/common/resource_manager/test_language_model_manager.py | Updates OpenAI responses LM conf fixture to gpt-5-mini. |
| tests/memmachine/common/configuration/test_language_model_conf.py | Updates OpenAI LM conf fixtures and assertions to gpt-5-mini. |
| src/memmachine/main/memmachine.py | Updates short-term memory default LLM model to gpt-5.2. |
| src/memmachine/installation/utilities.py | Updates installation default OpenAI model to gpt-5-mini. |
| src/memmachine/common/api/config_spec.py | Updates API spec defaults for OpenAI Responses/Chat Completions to gpt-5.2. |
| sample_configs/episodic_memory_config.gpu.sample | Updates sample OpenAI model to gpt-5-mini. |
| sample_configs/episodic_memory_config.cpu.sample | Updates sample OpenAI model to gpt-5-mini. |
| memmachine-compose.sh | Updates interactive prompt/default/fallback OpenAI model to gpt-5-mini. |
| examples/v1/frontend/model_config.py | Updates example frontend OpenAI model list to gpt-5-mini. |
| examples/v1/frontend/llm.py | Updates example frontend default model string to gpt-5-mini. |
| examples/v1/crm/slack_server.py | Updates CRM Slack example OpenAI model to gpt-5-mini. |
| examples/v1/crm/README.md | Updates CRM README to reference GPT‑5 Mini. |
| examples/simple_chatbot/model_config.py | Updates simple chatbot model list/display names to GPT‑5.x identifiers. |
| examples/simple_chatbot/llm.py | Updates simple chatbot default model string to gpt-5-mini. |
| examples/simple_chatbot/app.py | Updates simple chatbot default model to gpt-5-mini. |
| examples/simple_chatbot/README.md | Updates simple chatbot README OpenAI model list to GPT‑5.x. |
| evaluation/locomo/episodic_memory/restapiv2_locomo_search.py | Updates evaluation script default OPENAI_MODEL_NAME to gpt-5-mini. |
| evaluation/locomo/episodic_memory/locomo_search.py | Updates evaluation script responses model to gpt-5-mini. |
| evaluation/locomo/episodic_memory/llm_judge.py | Updates evaluation judge model to gpt-5-mini. |
| evaluation/locomo/episodic_agent/restapiv2_locomo_search_agent.py | Updates agent evaluation default OPENAI_MODEL_NAME to gpt-5-mini. |
| evaluation/locomo/episodic_agent/memmachine_locomo.py | Updates agent evaluation response model to gpt-5-mini. |
| evaluation/locomo/episodic_agent/llm_judge.py | Updates agent judge model to gpt-5-mini. |
| docs/open_source/configuration.mdx | Updates documentation config examples/table to gpt-5-mini. |
| docs/install_guide/install_guide.mdx | Updates install guide YAML examples to gpt-5-mini. |
| docs/install_guide/cloud_deploy/aws_cloudformation.mdx | Updates CloudFormation example model to gpt-5-mini. |
| docs/examples/agents.mdx | Updates agents example env var MODEL_ID to gpt-5-mini. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Steve Scargall <37674041+sscargal@users.noreply.github.com>
bb1be95 to
8b3d1c8
Compare
jealous
approved these changes
Feb 12, 2026
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 of the change
OpenAI is deprecating all GPT-4.x models effective February 13th, 2026. This PR replaces all occurrences of gpt-4* with their gpt-5* equivalents.
Description
Here are the model mappings and the files touched. The model names were obtained from https://developers.openai.com/api/docs/models.
This is a search-and-replace PR. No other changes were made.
Model Mapping
Files Changed (34 files)
Source Code (3 files)
Shell Scripts (1 file)
Sample Configs (2 files)
Documentation (4 files)
Examples (7 files)
Evaluation Scripts (6 files)
Tests (11 files)
Fixes/Closes
Fixes #1005
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
I only verified that MemMachine starts. I HAVE NOT done any end-to-end testing or QA. This needs to be done using the nightly testing before approval and merging.
The following
grepfound no mentions of GPT 4 models in the source code.Checklist
Maintainer Checklist
Screenshots/Gifs
N/A
Further comments
None