Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(codex): replace retired default model with GPT-5.6 Terra (#5120)

Qin Haojie8ae1700232e8
diff --git a/docs/en/guides/01-configuration.md b/docs/en/guides/01-configuration.md
index f96531c38..482a1c17a 100644
--- a/docs/en/guides/01-configuration.md
+++ b/docs/en/guides/01-configuration.md
@@ -118,13 +118,15 @@ Use `openviking-server init` to complete the Codex login/import step, then run `
},
"vlm": {
"provider" : "openai-codex",
- "model" : "gpt-5.4",
+ "model" : "gpt-5.6-terra",
"api_base" : "https://chatgpt.com/backend-api/codex",
"reasoning_effort": "xhigh"
}
}
```
+OpenAI [retired `gpt-5.4` from Codex with ChatGPT sign-in](https://learn.chatgpt.com/docs/models#deprecated-codex-models) on August 31, 2026. For an existing setup, change `vlm.model` in `ov.conf` to `gpt-5.6-terra` and restart the server; upgrading OpenViking does not rewrite saved model settings. This retirement does not affect `provider: "openai"` with an API key.
+
</details>
<details>
diff --git a/docs/zh/guides/01-configuration.md b/docs/zh/guides/01-configuration.md
index 721efb62e..a7d1f389e 100644
--- a/docs/zh/guides/01-configuration.md
+++ b/docs/zh/guides/01-configuration.md
@@ -119,13 +119,15 @@ openviking-server doctor
},
"vlm": {
"provider" : "openai-codex",
- "model" : "gpt-5.4",
+ "model" : "gpt-5.6-terra",
"api_base" : "https://chatgpt.com/backend-api/codex",
"reasoning_effort": "xhigh"
}
}
```
+OpenAI 已于 2026 年 8 月 31 日[停止在 ChatGPT 登录的 Codex 中提供 `gpt-5.4`](https://learn.chatgpt.com/docs/models#deprecated-codex-models)。已有配置需将 `ov.conf` 中的 `vlm.model` 改为 `gpt-5.6-terra` 并重启服务;升级 OpenViking 不会自动修改已保存的模型设置。此次退役不影响使用 API Key 的 `provider: "openai"`。
+
</details>
<details>
diff --git a/examples/ov.conf.example b/examples/ov.conf.example
index 048a74d3d..c91cb5396 100644
--- a/examples/ov.conf.example
+++ b/examples/ov.conf.example
@@ -185,7 +185,7 @@
"vlm_codex_example": {
"_comment": "For Codex OAuth via subscription. Complete sign-in from `openviking-server init`. OV stores tokens in ~/.openviking/codex_auth.json and can bootstrap from an existing Codex CLI auth file if needed.",
"provider": "openai-codex",
- "model": "gpt-5.3-codex",
+ "model": "gpt-5.6-terra",
"api_base": "https://chatgpt.com/backend-api/codex",
"reasoning_effort": "xhigh",
"temperature": 0.0,
diff --git a/openviking_cli/setup_wizard.py b/openviking_cli/setup_wizard.py
index fd1e37be2..f8d0b71ec 100644
--- a/openviking_cli/setup_wizard.py
+++ b/openviking_cli/setup_wizard.py
@@ -34,7 +34,7 @@ from openviking_cli.utils.ollama import (
_DEFAULT_CODEX_BASE_URL = "https://chatgpt.com/backend-api/codex"
_DEFAULT_KIMI_BASE_URL = "https://api.kimi.com/coding"
_DEFAULT_GLM_BASE_URL = "https://api.z.ai/api/coding/paas/v4"
-_DEFAULT_CODEX_MODEL = "gpt-5.4"
+_DEFAULT_CODEX_MODEL = "gpt-5.6-terra"
_DEFAULT_KIMI_MODEL = "kimi-code"
_DEFAULT_GLM_MODEL = "glm-4.6v"
diff --git a/tests/cli/test_setup_wizard.py b/tests/cli/test_setup_wizard.py
index e31405028..ab4283a25 100644
--- a/tests/cli/test_setup_wizard.py
+++ b/tests/cli/test_setup_wizard.py
@@ -1420,22 +1420,29 @@ class TestRunInitExistingConfigMenu:
class TestTwoStepWizard:
- def test_mixed_local_embedding_cloud_vlm(self):
+ def test_mixed_local_embedding_codex_vlm(self):
dense = {"provider": "ollama", "model": "qwen3-embedding:0.6b", "dimension": 1024}
- vlm = {"provider": "openai", "model": "gpt-5.4", "api_base": "https://api.openai.com/v1"}
with (
patch(
"openviking_cli.setup_wizard._prompt_embedding_flow",
return_value=(dense, True),
),
- patch("openviking_cli.setup_wizard._prompt_cloud_vlm", return_value=(vlm, None)),
+ patch("openviking_cli.setup_wizard._prompt_choice", return_value=4),
+ patch("openviking_cli.setup_wizard._ensure_codex_auth", return_value=True),
+ patch("builtins.input", return_value=""),
patch("builtins.print"),
):
config, ollama_running = _wizard_two_step()
assert config is not None
assert config["embedding"]["dense"] == dense
- assert config["vlm"] == vlm
+ assert config["vlm"] == {
+ "provider": "openai-codex",
+ "model": "gpt-5.6-terra",
+ "api_base": "https://chatgpt.com/backend-api/codex",
+ "temperature": 0.0,
+ "max_retries": 2,
+ }
assert config["storage"]["workspace"] == _workspace_path()
# Ollama state from the embedding step survives a non-Ollama VLM step.
assert ollama_running is True
diff --git a/tests/unit/test_codex_vlm.py b/tests/unit/test_codex_vlm.py
index 69ff92af9..0808af565 100644
--- a/tests/unit/test_codex_vlm.py
+++ b/tests/unit/test_codex_vlm.py
@@ -140,7 +140,7 @@ def test_codex_vision_completion_converts_images(mock_resolve, mock_openai_class
)
mock_openai_class.return_value = mock_real_client
- vlm = CodexVLM({"provider": "openai-codex", "model": "gpt-5.3-codex"})
+ vlm = CodexVLM({"provider": "openai-codex", "model": "gpt-5.6-terra"})
result = vlm.get_vision_completion("describe", [b"\x89PNG\r\n\x1a\n0000"])
assert result == "image result"