Skip to content

Update all OpenAI Chat GPT 4.x models to 5.x.#1115

Open
sscargal wants to merge 1 commit intoMemMachine:mainfrom
sscargal:bugfix/1005
Open

Update all OpenAI Chat GPT 4.x models to 5.x.#1115
sscargal wants to merge 1 commit intoMemMachine:mainfrom
sscargal:bugfix/1005

Conversation

@sscargal
Copy link
Contributor

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

Old Model New Model Occurrences
gpt-4o-mini gpt-5-mini 25
gpt-4o gpt-5.2 4
gpt-4 gpt-5.2 20
gpt-4.1-mini gpt-5-mini 8
gpt-4.1 gpt-5.2 2

Files Changed (34 files)

Source Code (3 files)

  • src/memmachine/installation/utilities.py — DEFAULT_OPENAI_MODEL default
  • src/memmachine/common/api/config_spec.py — OpenAI Responses and Chat Completions model defaults
  • src/memmachine/main/memmachine.py — Short-term memory LLM default

Shell Scripts (1 file)

  • memmachine-compose.sh — OpenAI model prompt, default fallback, and help text (4 references)

Sample Configs (2 files)

  • sample_configs/episodic_memory_config.gpu.sample
  • sample_configs/episodic_memory_config.cpu.sample

Documentation (4 files)

  • docs/open_source/configuration.mdx — Config examples and parameter table
  • docs/install_guide/install_guide.mdx — Install guide YAML examples
  • docs/install_guide/cloud_deploy/aws_cloudformation.mdx — CloudFormation template
  • docs/examples/agents.mdx — Agent example env var

Examples (7 files)

  • examples/simple_chatbot/app.py — Default model constant
  • examples/simple_chatbot/llm.py — Model string default
  • examples/simple_chatbot/model_config.py — Provider model map and display names
  • examples/simple_chatbot/README.md — Multi-provider LLM list
  • examples/v1/frontend/llm.py — Model string default
  • examples/v1/frontend/model_config.py — Provider model map
  • examples/v1/crm/slack_server.py — OpenAI chat completion model
  • examples/v1/crm/README.md — Feature description

Evaluation Scripts (6 files)

  • evaluation/locomo/episodic_agent/memmachine_locomo.py
  • evaluation/locomo/episodic_agent/restapiv2_locomo_search_agent.py
  • evaluation/locomo/episodic_agent/llm_judge.py
  • evaluation/locomo/episodic_memory/locomo_search.py
  • evaluation/locomo/episodic_memory/restapiv2_locomo_search.py
  • evaluation/locomo/episodic_memory/llm_judge.py

Tests (11 files)

  • tests/memmachine/conftest.py — Integration config fixture
  • tests/memmachine/main/test_memmachine_mock.py — STM default assertion
  • tests/memmachine/installation/test_configuration_wizard.py — Wizard prompt test input
  • tests/memmachine/common/configuration/test_language_model_conf.py — Model config fixtures and assertions
  • tests/memmachine/common/resource_manager/test_language_model_manager.py — Manager mock config
  • tests/memmachine/rest_client/test_config.py — Semantic memory config tests
  • tests/memmachine/rest_client/test_memory.py — Semantic set configure tests
  • tests/memmachine/server/api_v2/test_config_router.py — Resource and memory config endpoint tests
  • tests/memmachine/server/api_v2/test_config_service.py — Config service persistence test
  • tests/memmachine/server/api_v2/test_router.py — Semantic set configure endpoint test

Fixes/Closes

Fixes #1005

Type of change

  • Project Maintenance (updates to build scripts, CI, etc., that do not affect the main project)

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.

  • Manual verification (list step-by-step instructions)

The following grep found no mentions of GPT 4 models in the source code.

$ grep -Rsi "gpt-4" *

Checklist

  • I have signed the commit(s) within this pull request
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • Confirmed all checks passed
  • Contributor has signed the commit(s)
  • Reviewed the code
  • Run, Tested, and Verified the change(s) work as expected

Screenshots/Gifs

N/A

Further comments

None

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@MemMachine MemMachine deleted a comment from chatgpt-codex-connector bot Feb 12, 2026
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.

[Bug]: Update all GPT 4.x model references due to deprecation by OpenAI in February 2026

2 participants